General discussion

Locked

NT script not completing?

By meremo ·
**Sorry, the only way I knew to provide more information to you was to repost.**
I am running a .bat file on a pdc. (I have debugged the batch file in DOS and it runs beautifully from begining to end.) When it is run as a script through NT, it processes the batch and then the pcs sit with the "Please wait while script executes" dialog box in the left top corner. Until you click on the cancel button, it will sit forever. The batch file is in the default directory \\server\winnt\system32\repl\import\scripts. Do I need to do something, or is this what it's supposed to do? Below is the login script:
@echo off
echo Please wait while Netcensus analyzes your machine!
net use n: \\server\serverc\net294 /y
n:
start /wait win32col display:hidden -info
net use n: /delete /y
exit

This conversation is currently closed to new comments.

5 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

NT script not completing?

by Linuxian In reply to NT script not completing?

I'm not sure why your creating a share N: and then deleting it but the problem with your script hanging centers on your use of the /wait switch. /wait will do just that, wait for user input. Remove wait and it will run.

Collapse -

NT script not completing?

by meremo In reply to NT script not completing?

I have debugged til blue in the face and the answer finally hit me.
But first to answer your questions:
1) I must use the start wait command to allow the application to
complete the analysis before proceeding.
2) I map to N: and then delete because the application will not
run the process utilizing unc.
The answer is so basic I'm almost embarrassed! If you will
note in the script, I am still physically on the N: drive and asking
to delete it! All I did was add a line that changed the drive,
then it deleted the N: mapping, thus the script could complete
and it does not hang up waiting for 'something more'.
Marilyn

Collapse -

NT script not completing?

by NetWill In reply to NT script not completing?

It seems the most likely problem is this line:


start /wait win32col display:hidden -info

Try use NET START instead of the map, start, and then unmap.

Hope this helps!

Collapse -

NT script not completing?

by meremo In reply to NT script not completing?

I have debugged til blue in the face and the answer finally hit me.
But first to answer your questions:
1) I must use the start wait command to allow the application to
complete the analysis before proceeding.
2) I map to N: and then delete because the application will not
run the process utilizing unc.
The answer is so basic I'm almost embarrassed! If you will
note in the script, I am still physically on the N: drive and asking
to delete it! All I did was add a line that changed the drive,
then it deleted the N: mapping, thus the script could complete
and it does not hang up waiting for 'something more'.
Marilyn

Collapse -

NT script not completing?

by meremo In reply to NT script not completing?

This question was closed by the author

Back to Windows Forum
5 total posts (Page 1 of 1)  

Related Discussions

Related Forums