MSFN Forum: delete wpi folder after completion - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

delete wpi folder after completion Rate Topic: -----

#1 User is offline   crazydrve 

  • Newbie
  • Group: Members
  • Posts: 16
  • Joined: 20-March 08

Posted 18 December 2011 - 02:21 AM

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 computer
start wpi
wpi finishes

now i would like to add a cmd so it can delete itself after being completed. leaving no files or folders.

any ideas? thanks


#2 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 7,756
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 18 December 2011 - 09:59 AM

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

#3 User is offline   crazydrve 

  • Newbie
  • Group: Members
  • Posts: 16
  • Joined: 20-March 08

Posted 18 December 2011 - 04:09 PM

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 work
crazydrve

#4 User is offline   crazydrve 

  • Newbie
  • Group: Members
  • Posts: 16
  • Joined: 20-March 08

Posted 18 December 2011 - 09:32 PM

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 finished
then after restart folder is gone and clean... bingo...

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy