Jump to content

Recommended Posts

Guest Shitironman
Posted

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,

 

More...

  • Replies 0
  • Created
  • Last Reply

Popular Days

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...