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
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!

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.