By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,978 Members | 1,467 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,978 IT Pros & Developers. It's quick & easy.

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

P: n/a

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!


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:
PsExec v1.55 - Execute processes remotely
Copyright (C) 2001-2004 Mark Russinovich
Sysinternals -

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

Starting PsExec service on

Connecting with PsExec service on

Starting forfiles on

forfiles exited on DEVCRP01 with error code 1.

Completed at 6/7/2007 3:11:21 PM

Anyone can tell me what's wrong? Thanks!

Jun 7 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.