> -----Original Message-----
> From: [email protected]
[mailto:[email protected]]
> On Behalf Of Michael Madigan
> Sent: Monday, February 15, 2010 9:58 AM
> To: [email protected]
> Subject: Re: [NF] Windows Scripting and/or Windows Scheduled Tasks
problem
>
> Map the drives in the beginning of the script again. If they are
already
> mapped then it will just give you an error you can ignore
>
> make sure you are using the correct password in the scheduler so it
can
> run the task. If you've recently changed your password, you have to
> change the password on the scheduler.
>
> Make sure the other server isn't busy or down while your task runs.
Like
> if the remote server is running a backup itself, it will slow down or
stop
> your remote backup.
Several years ago I wrote what turned out to be a pretty slick little
program in VFP that checked for an existing mapping, created it on the
fly if not, did the main purpose of the program, disconnected the mapped
network drive....
'this creates the mapping
Set objNetwork = CreateObject("WScript.Network")
objNetwork.MapNetworkDrive "F:", "\\mything\myfolder"
Although at the moment I am getting some library registration problems
(which I assume I can solve), I am wondering how to check for an
existing mapping before proceeding... or I s'pose I could just ignore
the error if it pops up, but...
Matt
--------------------------------------------------------------------------
Disclaimer: This electronic message may contain information that is
Proprietary, Confidential, or legally privileged or protected. It
is intended only for the use of the individual(s) and entity named
in the message. If you are not an intended recipient of this
message, please notify the sender immediately and delete the
material from your computer. Do not deliver, distribute or copy
this message and do not disclose its contents or take any action in
reliance on the information it contains.
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/69f310c05dd83c48a84ba3769ce1ecf802d5f...@tntriexevs02.triadhospitals.net
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.