FORFILES error: "The system cannot find the file specified"

C

Curious

Hi,

I'm not sure if this is the right place to post such command issues.
If you know a better forum where people respond to messages fairly
often, please let me know! Anyway, would appreciate your help!

---------------------------------------------------------------------------------------------------------------
Hi,

I've created a scheduler job with FORFILES command to delete files
older than certain days old. My job definition is as below:


\\DEVCRP01 forfiles /P "d:\CRPCORE\ServiceLogs" /M *.* /D
-30 /S /C "del @FILE"


But the job failed because of "ERROR: The system cannot find the file
specified.". See error details below:


--------------------------------Complete
Error-------------------------------------
PsExec v1.55 - Execute processes remotely
Copyright (C) 2001-2004 Mark Russinovich
Sysinternals - www.sysinternals.com

ERROR: The system cannot find the file specified.
ERROR: The system cannot find the file specified.
Connecting to
DEVCRP01...

Starting PsExec service on
DEVCRP01...

Connecting with PsExec service on
DEVCRP01...

Starting forfiles on
DEVCRP01...

forfiles exited on DEVCRP01 with error code 1.

Completed at 6/7/2007 3:11:21 PM
--------------------------------Complete
Error-------------------------------------

Anyone can tell me what's wrong? Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top