Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Batch File To delete File in Norton Quarantine

  • 21-07-2005 03:08PM
    #1
    Registered Users, Registered Users 2 Posts: 1,202 ✭✭✭


    Hi Folks i need some help in writing a batch file to delete the file swhich are stored in norton antivirus quarantine.

    the path for the folder is

    "C:\Documents and Settings\All Users\Application Data\Symantec\Norton AntiVirus Corporate Edition\7.5\Quarantine"

    i've tried this but it gives the message saying the path could not be found

    "cls
    REM *******************************************
    REM **quarantine Kill Program **
    REM *******************************************

    del /q C:\Documents and Settings\All Users\Application Data\Symantec\Norton AntiVirus Corporate Edition\7.5\Quarantine\*.*

    pause
    cls
    REM Files deleted"

    any suggestions???


Comments

  • Registered Users, Registered Users 2 Posts: 604 ✭✭✭Kai


    What version of windows do you use ?

    Versions older that 2000 require a shorter path name for each folder.

    "Documents and settings" is too long a folder name for dos to handle, it probably needs to be "Documen~1"

    The best way to work out the correct path is to navigate to the folder in DOS using CD <<Folder name>> commands and then copy the path into your batch file.


    Try :
    C:\DOCUME~1\ALLUSE~1\APPLIC~1\Symantec\Norton~1\7.5\Quaranti~1\


  • Registered Users, Registered Users 2 Posts: 1,202 ✭✭✭woodyg


    Its XP pro.

    i tried the copy and paste method no joy


  • Registered Users, Registered Users 2 Posts: 7,588 ✭✭✭Bluetonic


    Use

    del /q C:\"Documents and Settings"\"All Users"\"Application Data"\Symantec\"Norton AntiVirus Corporate Edition"\7.5\Quarantine\*

    Just to Edit that to say of course you can just pass in the path name to the function del as one big string which will speed up performance

    del /q "C:\Documents and Settings\All Users\Application Data\Symantec\Norton AntiVirus Corporate Edition\7.5\Quarantine\*"


  • Registered Users, Registered Users 2 Posts: 1,202 ✭✭✭woodyg


    cheers for the help bluetonic.
    works like a charm now.


Advertisement