Guest Shitironman Posted October 15, 2024 Posted October 15, 2024 I have a batch using forfiles command to regularly delete old files.forfiles /p C:\A\B\C\D\E\ /s /m *.abc /d -10 /c "cmd /c del @file" It works well so far on 5 PCs (WIN7 and WIN10), but on one (also Win7) doing it wrong:Finds the file, so echo @Path is C:\A\B\C\D\E\file1.abc is goodthen it tries to delete from one folder up C:\A\B\C\D\file1.abc for some reason. Not a surprise, it will fail as cannot find file.Do you have any idea what could be the issue with this one particular PC? Could be some evil windows setting?Note: Del @path seemingly does the job, but still, Continue reading... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.