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:
01373014
Vues:
16
>>>>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
>>>>>
>>>>>
>>>
>>>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?
>

From what I remember, syntax was net use \\Server Name\Share Name password user [user domain\] user name
so, what we've got here is
Server Name: WashAlertsystem
Share Name: WAData
Password: pavilion
User Domain: WashAlertSystem
User Name: WashAlert
"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
Répondre
Fil
Voir

Click here to load this message in the networking platform