Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2003
    Location
    San Jose, CA
    Posts
    21

    Delete folder on reboot?

    During my uninstall, many of the files are loaded into memory. Therefore they are marked for delete on reboot. I also would like to delete the folders they are in on reboot.

    Any idea how to hack this, workaround?

    Thanks in advance.

  2. #2
    Join Date
    Feb 2003
    Location
    San Jose, CA
    Posts
    21

    Found it for those who want it...

    Make a registry entry in:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\RunOnce

    Name: AnythingyouWant
    Value: command.com /c rmdir /s /q c:\DirName

    This will execute on the reboot and delete a given folder. This only holds true if the same user logs in again and it will flash a DOS window very quickly when it happens, but it does work.

  3. #3
    Join Date
    Aug 2006
    Posts
    1

    Invalid switch - /s

    I just wondered why above command "command.com /c rmdir /S /Q c:\myDir"
    is not working. It responds with error queted: Invalid switch -/S. Is there some other notation to pass switch and specify that that switch belongs to literal string comman after /c swith and command com to proceed that switch like literal.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts