Discussion:
Deleting a folder into application data folder during logon
(too old to reply)
MAX
2005-03-02 21:47:07 UTC
Permalink
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
Vera Noest [MVP]
2005-03-02 22:04:44 UTC
Permalink
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!

--
Vera Noest
MCSE, CCEA, Microsoft MVP - Terminal Server
http://hem.fyristorg.com/vera/IT
--- please respond in newsgroup, NOT by private email ---
Post by MAX
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
Loading...