Windows 10: Batch file no report from external hard drive Solved


  1. Posts : 220
    64-bit Windows 10 Home ver.1607
       03 Oct 2016 #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 ComputerSystem Spec


  2. Posts : 2,557
    10 Home x64 (1703) (10 Pro on 2nd pc)
       03 Oct 2016 #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 ComputersSystem Spec


  3. Posts : 220
    64-bit Windows 10 Home ver.1607
    Thread Starter
       03 Oct 2016 #3

    OK, Bree. Thanks.
      My ComputerSystem Spec


 

Related Threads
external hard drive in Drivers and Hardware
Hello everyone I am new to Tenforums. I am trying to get an external hard drive to show up so I can use it. It shows up in the disc management it is a 2TB of storage but it shows up as 127mb I don't understand it. It is a g drive I have attached an...
Greetings group. I have a 2 month old hard drive that failed on my desktop PC, taking My Documents with 7 years worth of data. I had just moved the folder to the new drive and hadn't gotten a chance to backup yet. I'm trying to check Recycle bins...
External Hard drive off and on in Drivers and Hardware
Hope this is in the right place. In the past few days my external hard drive makes the sound (windows notification) like when I unplug it from my desktop. Then about 5 seconds later I get another sound and notification asking me how I would like...
Pen Drive and external hard drive keep getting errors! So I select to fix the problem scandrive recommended scan and repair. But there's never anything wrong with them it reports! And it takes ages to scan it takes 10-15 minutes for 32GB pen drive....
I recently upgraded to Windows 10 and post that It was working fine without any issues. I have two external drive connected to it. 1. 1 TB Iomega powered drive. - now RAW 2. 2TB seagate external drive. The 1tb drive suddenly became RAW and I...
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 05:10.
Find Us