crazydrve Posted December 18, 2011 Posted December 18, 2011 Hi all, I have been trying to figure out how I can set wpi to delete its folder after its done. example.i copy wpi folder to computerstart wpiwpi finishesnow i would like to add a cmd so it can delete itself after being completed. leaving no files or folders. any ideas? thanks
Kelsenellenelvian Posted December 18, 2011 Posted December 18, 2011 Why are you copying the WPI folder?This hasn't been done in @4 years. It is MUCH quicker and easier to leave the wpi folder on your source.What you want to do SPECIFICALLY can't be done in WPI. You would have to add yet another script to your setup OUTSIDE of WPI
crazydrve Posted December 18, 2011 Author Posted December 18, 2011 Thanks, thats what I thought... I work for a non-profit and rebuild many systems and for the longest time we had admin rights to a computer we use but they changed all computers and now we don't have admin rights. cant create share, etc. I was running it from network but now only option is to copy it to the systems, or run from cd but don't want to do that for reason of maybe forgetting cd. Only have one thumb drive and it was way too slow from flash drive. No big deal just trying to make things more efficient. thanks or all your hard workcrazydrve
crazydrve Posted December 19, 2011 Author Posted December 19, 2011 I found a way if anyone else needs it...I add a execute after script of a .reg file with importing this to the registry[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce]"New Value #1"="cmd.exe /c rmdir c:\\wpi /s /q"then set the computer to restart in wpi when finishedthen after restart folder is gone and clean... bingo...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now