Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Batch File To delete File in Norton Quarantine

  • 21-07-2005 2:08pm
    #1
    Registered Users, Registered Users 2 Posts: 1,204 ✭✭✭


    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,204 ✭✭✭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,204 ✭✭✭woodyg


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


Advertisement