1.    2 Weeks Ago #1
    Join Date : Jun 2015
    Posts : 207
    64-bit Windows 10 Home ver.1607

    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 System SpecsSystem Spec

  2.    2 Weeks Ago #2
    Join Date : Aug 2016
    S/E England
    Posts : 554
    Windows 10 Home x64 (1607)

    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 System SpecsSystem Spec

  3.    2 Weeks Ago #3
    Join Date : Jun 2015
    Posts : 207
    64-bit Windows 10 Home ver.1607

    OK, Bree. Thanks.
      My System SpecsSystem Spec


Similar Threads
Thread Forum
external hard drive
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...
Drivers and Hardware
Recycle Bin(s) on External Hard Drives show Local Hard Drive Recycle
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...
General Support
External Hard drive off and on
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...
Drivers and Hardware
Pen Drive and external hard drive keep getting errors!
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....
Drivers and Hardware
External 1TB hard drive(Iomega - seagate inside) RAW drive - HELP
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...
Drivers and Hardware
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 17:06.
Find Us
Twitter Facebook Google+

Windows 10 Forums