Specialty Forums
Security and Virus
General Hardware
CPUs/Overclocking
Networking
Digital Photo/Video
Office Software
PC Gaming
Console Gaming
Programming
Database
Web Development
Digital Home

General Forums
Windows XP
Windows Vista
Windows 95/98
Windows Me
Windows NT
Windows 2000
Win Server 2008
Win Server 2003
Windows 3.1
Linux
PDAs
BeOS
Novell Netware
OpenVMS
Solaris
Disk Op. System
Unix
Mac
OS/2

Drivers
Driver Scan
Driver Forum

Software
Automatic Updates

BIOS Updates

My Computing.Net

Solution Center

Free IT eBook

Howtos

Site Search

Message Find

RSS Feeds

Install Guides

Data Recovery

About

Home
Reply to Message Icon Go to Main Page Icon

problem with xcopy launched with AT

Original Message
Name: dbeck
Date: November 8, 2004 at 20:20:28 Pacific
Subject: problem with xcopy launched with AT
OS: nt 4 sp6
CPU/Ram: PIII 400
Comment:
I have a simple 1 line batch file to copy a directory from the PDC to a SDC. The statement is "XCOPY \\PDC-Name\directory d:\directory /s /e "
This runs fine if I launch the job from the command line, but if I submit it to AT, I always get "0 files copied".
Somthing is goofy with the way the scheduler is interpreting this line.
I'm logged on as administrator on the SDC.
I've tried everything I can think of.
Has anyone run across this problem?
Thanks
Dave


Report Offensive Message For Removal


Response Number 1
Name: Mechanix2Go
Date: November 9, 2004 at 02:14:18 Pacific
Subject: problem with xcopy launched with AT
Reply: (edit)
Hi Dave,

I'm not on a network, but had some AT confusion which I had to work through myself.

Like you, I had a very simple bat which worked at the prompt but not when scheduled by AT.
::testAT.bat
type nul > test

The "solution" was to use full path syntax:

::testAT2.bat
type nul > c:\temp\test2
::

and I scheduled it as:

c:\temp\testAT2.bat
::
I just tried it again and now it does NOT work.

Here's a screenshot:
::
c:\TEMP>at 17:09 c:\temp\testat2.bat
The system cannot find the drive specified.

c:\TEMP>at
Status ID Day Time Command Line
------------
1 Today 17:09 c:\temp\testat2.bat

c:\TEMP>at
Status ID Day Time Command Line
------------
Error 1 Tomorrow 17:09 c:\temp\testat2.bat

c:\TEMP>
::

I guess AT has two modes, goofy and goofier.


M2


Report Offensive Follow Up For Removal

Response Number 2
Name: wanderer
Date: November 9, 2004 at 09:41:51 Pacific
Subject: problem with xcopy launched with AT
Reply: (edit)
This is a old problem. The scheduler runs under the system account. The system account doesn't have network rights and has limited local rights.

This is why the batch works if you manually run it but not if the scheduler runs it.

Solution is to make a admin scheduler account with logon as a service rights. Assign that account to the scheduler service.

Now your AT scheduler has the rights to execute your batch.


Report Offensive Follow Up For Removal

Response Number 3
Name: Mechanix2Go
Date: November 9, 2004 at 09:46:02 Pacific
Subject: problem with xcopy launched with AT
Reply: (edit)
Hi wanderer,

That explains his prob. But I don't have a network.

TIA

M2


Report Offensive Follow Up For Removal

Response Number 4
Name: dbeck
Date: November 9, 2004 at 14:16:09 Pacific
Subject: problem with xcopy launched with AT
Reply: (edit)
Thanks you guys. I'll have to wait til tommorow to try it at work. I hope it's intuitive how to create the new account and assign that account to the scheduler service.


Report Offensive Follow Up For Removal

Response Number 5
Name: wanderer
Date: November 10, 2004 at 10:10:36 Pacific
Subject: problem with xcopy launched with AT
Reply: (edit)
Mechanix2Go
then you would be dealing with a local security issue. Still comes down to the same solution.

Dave its pretty easy. User manager to create the account. go to "services" and edit the "scheduler" or "task scheduler" service logon account.


Report Offensive Follow Up For Removal




Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: problem with xcopy launched with AT

Comments:

 
  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 


Data Recovery Software




uninstall program

CPU and Graphics Upgrade Questions

VIRUS ALERT in Taskbar, HELP!

DSHUB24 Connection Problems

need help with dsl and dial up


The information on Computing.Net is the opinions of its users. Such opinions may not be accurate and they are to be used at your own risk. Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE

All content ©1996-2007 Computing.Net, LLC