VideoHelp Forum
+ Reply to Thread
Results 1 to 8 of 8
Thread
  1. Hi ()()()

    Code:
    C:\Volumes\tmp_whatsapp.avs-2
    C:\Volumes\tmp_whatsapp.avs-3
    C:\Volumes\tmp_whatsapp.avs-4
    C:\Volumes\tmp_whatsapp.avs-5
    C:\Volumes\tmp_whatsapp.avs-6
    C:\Volumes\tmp_whatsapp.avs-7
    C:\Volumes\tmp_whatsapp.avs
    for kindness I need a commandline to delete ALL the file that in the folder called "volumes" start naming for tmp_whatsapp.avs

    in this case I need to delete all this example files

    Is there a way? thanks
    Quote Quote  
  2. Member Cornucopia's Avatar
    Join Date
    Oct 2001
    Location
    Deep in the Heart of Texas
    Search PM
    Yes,

    Use deltree, robocopy, powershell, etc.

    Scott
    Quote Quote  
  3. Member
    Join Date
    Jul 2009
    Location
    United States
    Search Comp PM
    Code:
    del C:\Volumes\tmp_whatsapp.avs*
    Quote Quote  
  4. Note that * means any number (including zero) of any characters. Whereas ? means any one character (and there must be a character).

    So
    Code:
    del C:\Volumes\tmp_whatsapp.avs*
    will delete all seven files (of that list). But
    Code:
    del C:\Volumes\tmp_whatsapp.avs??
    will only delete the first six.
    Quote Quote  
  5. Better practice might be to set a temp directory and all temp files put in it. Then at the end you delete that directory, simple clean up.

    Code:
    set "temp_folder=D:\Temp"
    if not exist "%temp_folder%" echo creating temp folder: "%temp_folder%"& MD "%temp_folder%"
    then whatever temp file you put in there, some example
    Code:
    set "mediainfo=C:\tools\Mediainfo CLI\Mediainfo.exe"
    "%mediainfo%" "video.mp4" > "%temp_folder%\mediainfo.txt"
    set info="%temp_folder%\mediainfo.txt"
    echo %info% is my temp txt file with media info parameters
    then at the end:
    Code:
    if exist "%temp_folder%" DEL /F /Q "%temp_folder%"\*.*
    but double, triple check that syntax when you set that temp directory at the beginning , D:\Temp etc, so it is correct one
    Last edited by _Al_; 8th Feb 2023 at 22:28.
    Quote Quote  
  6. I'm a Super Moderator johns0's Avatar
    Join Date
    Jun 2002
    Location
    canada
    Search Comp PM
    Just highlight all the files you need to delete and delete them,no need for any cmd.
    I think,therefore i am a hamster.
    Quote Quote  
  7. aBigMeanie aedipuss's Avatar
    Join Date
    Oct 2005
    Location
    666th portal
    Search Comp PM
    can't believe that version of the "cat" is banned here...
    --
    "a lot of people are better dead" - prisoner KSC2-303
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!