Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 479
  • 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

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