I think net use x: \\machine\share_point need a network user context. Try
with a different userName.
Good luck,
Tom
-----Original Message-----
From: phillipstodd@y... [mailto:phillipstodd@y...]
Sent: Friday, March 01, 2002 9:39 PM
To: ASPX_Professional
Subject: [aspx_professional] Is ASP.NET unable to execute a .bat that
uses net use?
I am executing a batch file from asp.net using:
proc = System.Diagnostics.Process.Start("E:\\transfer\\tools\\test.bat");
And a batch file with the following works fine:
E:\transfer\tools\RoboCopy.exe E:\transfer\tools\start \\tibcwba01
\public\copytest /MIR
But if I use net use if does not work.
net use x: \\tibcwba01\public\copytest mypass /user:test\toddp
E:\transfer\tools\RoboCopy.exe E:\transfer\tools\start x: /MIR
net use x: /delete
Of course both work when run directly.
In machine.config I have: <processModel userName="SYSTEM"/>
And ASP.NET is acting as part of the operating system.
Is there a way around this or alternative method?
Thanks
$subst('Email.Unsub').