Solved

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

Posted on 2013-01-08
2
473 Views
Last Modified: 2013-01-08
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
Comment
Question by:ats2012
2 Comments
 
LVL 11

Accepted Solution

by:
apathy42 earned 500 total points
ID: 38756420
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
 

Author Closing Comment

by:ats2012
ID: 38756448
After changing it to a UNC path it started to work. Thanks
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question