Deleting a folder into application data folder during logon

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to delete a particular folder that a psyware maybe create into
APPLICATION DATA folder of user.

In which way I can do this action ?

Thank you in advance
 
Put a line in your logon script, with something like:

if exist "%userprofile%\Application Data\folder_to_delete" rmdir /s
"%userprofile%\Application Data\folder_to_delete"

Note that this should be on a single line!
And check the correct syntax on a test system!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top