m_essaid
7 years agoValued Contributor
net use
Hi,
Does anyone has an idea how could I use the "net use" command within a script ?
For example, I do :
TestedApps.Clear;
TestedApps.Add('cmd.exe', '/c net use N: /d /y', 1, true, '');
TestedApps.cmd.Run;
And I do the same for adding the N: drive. But it do nothing.
I'm launching TestExecute during the night with a schedulled task that runs a .BAT.
Any help would be much appreciated, I can't figure out how to make it run as if it was with admin privileges.
Mehdi