<HTML>
<HEAD>
<TITLE>Re: [cisco-voip] Mounting a Shared Folder on Another Computer with a .bat File</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>Thanks, Matthew. I set the user name and password in the scheduled task but it still doesn’t run. I set it as the administrator and password of the computer it’s running on. Same username and password I’m logged in with.<BR>
<BR>
<BR>
On 5/5/10 2:04 PM, "Matthew Ballard" <mballard@otis.edu> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><FONT SIZE="4"><SPAN STYLE='font-size:14.0px'>What user are you running the script as? When you double click on the script, it is running as the user you are logged in as, but if you run it through a scheduled task, it runs as a different user. That difference is usually the problem when running manually works but a scheduled task doesn’t.<BR>
<BR>
Matthew Ballard<BR>
Network Manager<BR>
Otis College of Art and Design<BR>
<BR>
</SPAN></FONT><SPAN STYLE='font-size:12.0px'><BR>
</SPAN><FONT SIZE="4"><SPAN STYLE='font-size:13.0px'><B>From:</B> cisco-voip-bounces@puck.nether.net [<a href="mailto:cisco-voip-bounces@puck.nether.net]">mailto:cisco-voip-bounces@puck.nether.net]</a> <B>On Behalf Of </B>Jim Reed<BR>
<B>Sent:</B> Wednesday, May 05, 2010 1:00 PM<BR>
<B>To:</B> Go0se; cisco-voip voyp list<BR>
<B>Subject:</B> Re: [cisco-voip] Mounting a Shared Folder on Another Computer with a .bat File<BR>
</SPAN></FONT><SPAN STYLE='font-size:12.0px'> <BR>
</SPAN><FONT SIZE="4"><SPAN STYLE='font-size:13.0px'><B>Thanks Go0se and Lelio. The net use command works as a .bat file when I double-click on it but for some strange reason it won’t execute as a scheduled task. Returns a 0x0 code as if it were successful but a net use command shows no volumes. It’s a pretty simple setup:<BR>
<BR>
Net use \\10.10.7.22\UnityBackup /USER:adminstrator Tr1b501<BR>
<BR>
That’s it. Again, works flawlessly when I double-click on the batch file but set it as a scheduled task and it won’t run — whether I right click on it and run or set a time and let that time come and go. I’ve seen this before with setting .bat files as scheduled tasks and have never been able to figure out what the issue is. I have a lot of other .bat files running as scheduled tasks and they work without issue. There are just certain ones that won’t.<BR>
<BR>
Thank You...<BR>
</B></SPAN></FONT></FONT></BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><B><FONT SIZE="1"><SPAN STYLE='font-size:9.0px'><BR>
<BR>
</SPAN></FONT><FONT SIZE="2"><SPAN STYLE='font-size:10.0px'>-- <BR>
Jim Reed<BR>
Manager of Technical Services<BR>
Swift Communications, Inc.<BR>
970-384-9141 (Direct)<BR>
775-772-7666 (Cell)<BR>
</SPAN></FONT></B><SPAN STYLE='font-size:12.0px'><BR>
</SPAN></FONT>
</BODY>
</HTML>