Delete a folder in the currently logged in user's profile

Posted by Dan Cole on Server Fault See other posts from Server Fault or by Dan Cole
Published on 2013-07-02T21:00:00Z Indexed on 2013/07/02 23:08 UTC
Read the original article Hit count: 314

I am trying to create a login script, or bat file to delete the folder located in the following directory. I would like the whole folder deleted with all of its contents "Juniper Networks".

This is on a terminal server -

C:\Users(username)\AppData\Roaming\Juniper Networks

I can write a script for each username, but want a script to put in the startup folder that deleted the folder of the current user each time they login.

© Server Fault or respective owner

Related posts about windows-server-2008-r2

Related posts about windows-7