Share via

Scheduled task does not find mapped drive

Anonymous
2011-02-22T21:32:30+00:00

I have a batch file to copy files to a backup external drive. I created this and the destination drive is a mapped network drive called z:\

All runs fine when I manually run the batch file, but when I created a scheduled task to run (say once a week), the jobs fails as it cannot find the mapped drive.

Any suggestions?

Windows for home | Previous Windows versions | Windows update

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2011-02-24T22:09:19+00:00

The error I was getting is "cannot find mapped drive" (or something like that, I did not capture the exact message.

I circumvented the problem by including teh drive mapping in the bat file and have included the commands for the benfits of anyone else who may read this (z is the mapped drive I use)

net use z: /delete /y

net use z: \\server\share /user:DOMAIN\username password

Was this answer helpful?

3 people found this answer helpful.
0 comments No comments

Answer accepted by question author

Anonymous
2011-02-23T15:08:35+00:00

Hi   Testing whizz,

1)      Do you get any error message?

2)      Are you working on a domain network?

You may want to use SyncToy application to accomplish your task.

http://www.microsoft.com/downloads/en/details.aspx?familyid=C26EFA36-98E0-4EE9-A7C5-98D0592D8C52&displaylang=en

Thanks and Regards:

Ajay K

Microsoft Answers Support Engineer

***************************************************************************

Visit our Microsoft Answers Feedback Forum and let us know what you think.

Was this answer helpful?

0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2017-09-19T10:19:30+00:00

    I faced a similar issue. When I was trying to schedule a task and browse the script as action, the mapped drive was not even being displayed. I remapped the drive in the window that opened while browsing the file in the file system. After that it worked fine for me.

    Steps I followed:

    1. Open Task Scheduler
    2. Create a new task with all details, triggers etc needed.
    3. Go to actions -> Select the action from the drop-down list -> Click on "Browse"

    (This opened the browsing window)

    1. Right Click on Computer -> Map Network Drives -> Map the drive required
    2. Attach the file to the job

    Done

    Cheers!!

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments