Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2013-01-08
2
Medium Priority
?
478 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 11

Accepted Solution

by:
apathy42 earned 2000 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When it comes to writing scripts for a Client/Server computing environment it is essential to consider some way of enabling the authentication functionality within a script. This sort of consideration mainly comes into the picture when we are dealin…
You may have already been in the need to update a whole folder stucture using a script. Robocopy does it well and even provides a list of non-updated files in a log (if asked to). Generally those files that were locked by a user or a process by the …
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

688 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