Home · Compatibility Lists · Support Forums · FAQ · News Archive · Articles · Submit News/Upcoming News
NT Compatible
advertisement


Forum overview » Everything New Technology » Task scheduler refuse to run .cmd no log (1/1)

Reply New Poll

Task scheduler refuse to run .cmd no log
Author Message
duhmez
Senior Member


Posts: 583
From: Canada, West siiiiiiiiiide!
Joined: 2002-04-26
Member No.: 9046
Icon 2004-01-26 17:47:18

2000 servr domain controller. here i the batch.

f:
cd users
xcopy *.* /s blah blah couple other switches not relevant to issue.

When i run the batch it runs. when i set task scheduler to run it, it blinks up then goes away. So, I tried >\log.txt
the log is empty when it tries to run fom task scheduler. the user account used to run the task is the main Domain Admin account.
When doble clicked manually it runs, copies everything, and makes a nice fat logfile.

!?!!

Post #135799
Edit Quote Print Solution Plonk Delete
madacgrav
Member


Posts: 37
Joined: 2004-01-26
Member No.: 26370
Icon 2004-01-26 17:57:17

I tried to duplicate your problem and could not. I would suggest putting "pause" statements into the cmd file to see how far it goes and/or if it gets a error message that is closing before you can see it. Sorry i could not be more help.

Post #135802
Edit Quote Print Solution Plonk Delete
duhmez
Senior Member


Posts: 583
From: Canada, West siiiiiiiiiide!
Joined: 2002-04-26
Member No.: 9046
Icon 2004-02-02 15:17:53

Problem solved. Here is what happened. Task scheduler in this case does not have access to the windows path. When I did a copy blah t worked because copy is an internal command. When I Hard Code xcopy's location, it works.

Go figure.
For example: to copy one folder and all subdirectories to the d: drive: and create a log in the root of f:

f:
cd User_Shared_Folder
c:\winnt\system32\xcopy *.* d:\backup\users /e /c /v /h /r /y >\bloguser.txt

Now the question is is this normal? When i doublle click the batch it works, when task scheduler runs the task the batch has no access to the path and can't find xcopy and fails.

Post #135990
Edit Quote Print Solution Plonk Delete

Related Threads RSS


Reply New Poll

Forum overview » Everything New Technology » Task scheduler refuse to run .cmd no log

Legend
View   View profile
Solved   Mark this post as solution (topic starter only)
Quote   Reply with quote to post
Edit   Edit post
Delete   Delete post (admin only)

Moderator: Open / Close / Bump / Delete / Move / Merge

All products mentioned are registered trademarks or trademarks of their respective owners.
© 1998-2009 Esselbach Internet Solutions - All Rights Reserved. Terms and privacy policy
Website powered by Esselbach Storyteller CMS System