Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
An old bat file
Message
Information générale
Forum:
Windows
Catégorie:
Commandes DOS
Titre:
Divers
Thread ID:
01372949
Message ID:
01373004
Vues:
21
>>>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.


Thanks you all for replying.
What is the significance of the word 'pavilion' in the code?

Thanks,
Einar
Semper ubi sub ubi.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform