Solved

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

Posted on 2013-01-08
2
477 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 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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 …
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
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…

630 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