[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 480
  • Last Modified:

Bat file runs fine manually but fails if run as a Windows Task

I created a Bat file that moves some files from a computer to a network location. The script runs fine if I run it manually but when I set it up as a task it fails.

MOVE /Y "\\icn10125\C$\Pictures\*.*" "L:\dept\Equipment Pictures\00-Gary In Auto Uploads"

Open in new window

0
ats2012
Asked:
ats2012
1 Solution
 
apathy42Commented:
Is L a local drive to the computer running the task or a network drive? If L is a network drive, you'll need to use the UNC Path instead.

Does the user under which you are running the task have permissions to both locations?
0
 
ats2012Author Commented:
After changing it to a UNC path it started to work. Thanks
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now