<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<title>Re: [cisco-voip] Mounting a Shared Folder on Another Computer with a
.bat File</title>
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Just for kicks build it as a .cmd file instead of a .bat file
and schedule the .cmd file. See what you get.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Thanks,<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Go0se<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>My blog: <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><a href="http://atc.go0se.com/">http://atc.go0se.com</a><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>-------------------------------------<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Help Hopegivers International <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>feed the orphans of India.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><a href="http://www.hopegivers.org/">http://www.hopegivers.org</a><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>-------------------------------------<o:p></o:p></span></p>
</div>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Jim Reed
[mailto:jreed@swiftnews.com] <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<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><b><span style='font-size:10.5pt;
font-family:"Verdana","sans-serif"'>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>
</span></b><b><span style='font-size:7.5pt;font-family:"Verdana","sans-serif"'>--
<br>
Jim Reed<br>
Manager of Technical Services<br>
Swift Communications, Inc.<br>
970-384-9141 (Direct)<br>
775-772-7666 (Cell)<br>
</span></b><span style='font-size:9.0pt;font-family:"Verdana","sans-serif"'><br>
<br>
<br>
On 5/5/10 11:55 AM, "Go0se" <me@go0se.com> wrote:</span><o:p></o:p></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:9.0pt;
font-family:"Verdana","sans-serif"'>Use the "net use" command.<br>
<br>
Thanks,<br>
<br>
Go0se<br>
<br>
My blog:<br>
<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><br>
-------------------------------------<br>
<br>
-----Original Message-----<br>
From: cisco-voip-bounces@puck.nether.net<br>
[<a href="mailto:cisco-voip-bounces@puck.nether.net]">mailto:cisco-voip-bounces@puck.nether.net]</a>
On Behalf Of Jim Reed<br>
Sent: Wednesday, May 05, 2010 12:33 PM<br>
To: cisco-voip voyp list<br>
Subject: [cisco-voip] Mounting a Shared Folder on Another Computer with a<br>
.bat File<br>
<br>
Do any of you geniuses know if there is a utility or CLI command that will<br>
mount a shared folder on one Windows computer on another Windows computer.<br>
I have some backup routines I want to run on Call Manager, etc., to other<br>
destinations but since it's infrequent, the shared folder sometimes<br>
disconnects. If there is a way to do it through a .bat file, I could then<br>
set that as a scheduled task.<br>
<br>
Thank You...<br>
--<br>
Jim Reed<br>
Manager of Technical Services<br>
Swift Communications, Inc.<br>
970-384-9141 (Direct)<br>
775-772-7666 (Cell)<br>
<br>
<br>
<br>
_______________________________________________<br>
cisco-voip mailing list<br>
cisco-voip@puck.nether.net<br>
https://puck.nether.net/mailman/listinfo/cisco-voip<br>
<br>
</span><o:p></o:p></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></p>
</div>
</body>
</html>