Batch file no report from external hard drive


  1. Posts : 253
    64-bit Windows 10 Home ver.1607
       #1

    Batch file no report from external hard drive


    I have created this batch file that I often use in a command prompt to remove .tmp., .bak, and other files created by a program that I use:


    del c:\data\*.wbk /s
    del c:\data\music\*.clp /s
    del c:\*.tmp /s
    del c:\data\music\*.asv /s
    del c:\data\music\*.asvx /s
    del c:\*.bak /s
    del c:\*.bakx /s
    del c:\*.cvr /s
    del I:\Finale25TempFolder\*.tmp

    The c: directories always report which files are deleted, which files should be but wouldn't be deleted, and if no files to be deleted were found. When the command reaches the I: drive (only that one folder there), the .tmp files are deleted, so the command is working, but there is no report. The I: drive is a Western Digital Passport portable drive. How do I get the I: drive in this batch file to report as do the c: drive items?
      My Computer


  2. Posts : 31,666
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #2

    Yes. I've tested that on one of my external drives. Seems you only get the report of deletions if you used the /s option (which you didn't for I:). Silly, but even though you don't need it, add the /s to the 'I:' line and it will work like all the others.
      My Computers


  3. Posts : 253
    64-bit Windows 10 Home ver.1607
    Thread Starter
       #3

    OK, Bree. Thanks.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 23:50.
Find Us




Windows 10 Forums