<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'>Is that just a case of changing the . extension on it? Tried that and same result. Still works if I double-click on it but not if I run it from Scheduled Tasks. I’ll keep hammering at it.<BR>
<BR>
<BR>
On 5/5/10 2:33 PM, "Go0se" <me@go0se.com> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><FONT SIZE="4"><SPAN STYLE='font-size:14.0px'>Just for kicks build it as a .cmd file instead of a .bat file and schedule the .cmd file. See what you get.<BR>
<BR>
</SPAN></FONT><SPAN STYLE='font-size:12.0px'><BR>
</SPAN><FONT SIZE="4"><SPAN STYLE='font-size:14.0px'>Thanks,<BR>
<BR>
Go0se<BR>
<BR>
My blog: <BR>
<a href="http://atc.go0se.com">http://atc.go0se.com</a> <a href="http://atc.go0se.com/"><http://atc.go0se.com/></a> <BR>
<BR>
-------------------------------------<BR>
Help Hopegivers International <BR>
feed the orphans of India.<BR>
<a href="http://www.hopegivers.org">http://www.hopegivers.org</a> <a href="http://www.hopegivers.org/"><http://www.hopegivers.org/></a> <BR>
-------------------------------------<BR>
<BR>
</SPAN></FONT><SPAN STYLE='font-size:12.0px'><BR>
</SPAN><FONT SIZE="4"><SPAN STYLE='font-size:13.0px'><B>From:</B> Jim Reed [<a href="mailto:jreed@swiftnews.com]">mailto:jreed@swiftnews.com]</a> <BR>
<B>Sent:</B> Wednesday, May 05, 2010 3: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></B><SPAN STYLE='font-size:12.0px'>-- <BR>
Jim Reed<BR>
Manager of Technical Services<BR>
Swift Communications, Inc.<BR>
970-243-2200 Ext. 12301<BR>
775-772-7666 (Cell)<BR>
<BR>
</SPAN></FONT>
</BODY>
</HTML>