I'm on Win.2003 attempting to delete files in a directory older than 7 days, but the command throws an error. Any thoughts? Below is the output from the command window.
---------------------------------------------
Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.
C:\Documents and Settings\admin>forfiles -p "C:\SQLBACKUP\DATAFILES\" -s -m *.*
-d -7 -c "cmd /c del @FILE"
ERROR: Invalid argument/option - '@FILE'.
Type "FORFILES /?" for usage.
---------------------------------------------
Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.
C:\Documents and Settings\admin>forfiles -p "C:\SQLBACKUP\DATAFILES\" -s -m *.*
-d -7 -c "cmd /c del @FILE"
ERROR: Invalid argument/option - '@FILE'.
Type "FORFILES /?" for usage.