[cisco-voip] Mounting a Shared Folder on Another Computer with a .bat File

Jim Reed jreed at swiftnews.com
Wed May 5 19:21:56 EDT 2010


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.


On 5/5/10 2:33 PM, "Go0se" <me at go0se.com> wrote:

Just for kicks build it as a .cmd file instead of a .bat file and schedule the .cmd file. See what you get.


Thanks,

Go0se

My blog:
http://atc.go0se.com <http://atc.go0se.com/><http://atc.go0se.com/>

-------------------------------------
Help Hopegivers International
feed the orphans of India.
http://www.hopegivers.org <http://www.hopegivers.org/><http://www.hopegivers.org/>
-------------------------------------


From: Jim Reed [mailto:jreed at swiftnews.com]
Sent: Wednesday, May 05, 2010 3:00 PM
To: Go0se; cisco-voip voyp list
Subject: Re: [cisco-voip] Mounting a Shared Folder on Another Computer with a .bat File

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:

Net use \\10.10.7.22\UnityBackup /USER:adminstrator Tr1b501

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.

Thank You...


--
Jim Reed
Manager of Technical Services
Swift Communications, Inc.
970-243-2200 Ext. 12301
775-772-7666 (Cell)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://puck.nether.net/pipermail/cisco-voip/attachments/20100505/76f03e88/attachment.html>


More information about the cisco-voip mailing list