Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
An old bat file
Message
From
12/01/2009 16:20:56
 
 
To
12/01/2009 16:10:04
General information
Forum:
Windows
Category:
DOS commands
Title:
Miscellaneous
Thread ID:
01372949
Message ID:
01372968
Views:
19
>If I'm remembering my DOS/NT correctly
>
>it prints the line "Running Server's Startup Script..."
>then maps the next available drive letter to \\WashAlertSystem\WAData Share
>the runs the file NetworkControl.exe
>then deletes the mapped drive
>
>
>>I have not used the old DOS commands in a long time, and today I came accross an old bat file on a customer's computer that I am not sure what it is supposed to do.
>>If anyone could assist me with this code it would be great. What does it do (line by line)?
>>
>>
>>@Echo Off
>>Echo Running Server's Startup Script...
>>Net Use \\WashAlertSystem\WAData$ pavilion /user:WashAlertSystem\WashAlert
>>"C:\Program Files\Alliance\NetMaster\NetworkControl.exe"
>>Net Use \\WashAlertSystem\WAData$ /Delete /Y
>>
>>
>>Thanks,
>>Einar

Not quite. The first NET USE in this case is just logging on to/authenticating to the share. To get the next drive letter you have to specify a device name "*".

I'm tempted to say the command is incomplete in that it doesn't specify a drive letter, but the /Delete one later on doesn't specify one, either.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform