MSFN Forum: Delete Directory - MSFN Forum

Jump to content


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

Delete Directory Rate Topic: -----

#1 User is offline   Rekenaar 

  • Junior
  • Pip
  • Group: Members
  • Posts: 86
  • Joined: 01-January 04

Posted 15 August 2004 - 12:46 AM

Hi

I used the following command to delete a directory. Is this the best/only way to do it?

(the example will delete the menu entry "PrintMe Internet Printing" created by Acrobat Reader on the Start Menu)

Quote

command.3=cmd.exe /Q /C rd /s /q "%SYSTEMDRIVE%\Documents and Settings\All Users\Start Menu\Programs\PrintMe Internet Printing"


Thank you for this cool program.


#2 User is offline   my2001 

  • Member
  • PipPip
  • Group: Members
  • Posts: 260
  • Joined: 31-May 04

Posted 15 August 2004 - 05:01 PM

Well, as long as a method does what it is intended to it's a good method, isn't it! ;)

I'd by the way do it the same way like you. Maybe there're other methods, too, but the only way you can execute a command in WIHU is the command.x.y.z directive and a possible command to delete files is indeed cmd /c rd :) I guess another way would be using an INF-file, but don't ask me how this exactly works. But one thing is clear: INF files would be much more complicated! :)

Furthermore I don't think it would be a good idea to add an extra file deletion command to WIHU because this isn't the programm's original purpose.

Share this topic:


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

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



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