Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
An old bat file
Message
De
12/01/2009 17:14:15
 
 
À
12/01/2009 16:20:56
Information générale
Forum:
Windows
Catégorie:
Commandes DOS
Titre:
Divers
Thread ID:
01372949
Message ID:
01372987
Vues:
23
>>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.

IIRC, in NT4, the net use with no drive letter acted like Novel's Map Next. I think.
"You don't manage people. You manage things - people you lead" Adm. Grace Hopper
Pflugerville, between a Rock and a Weird Place
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform