Using RMDir with both /R and /REBOOTOK: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
m (Updated author and download links, and changed format of some pages.) |
m (Updated author links.) |
||
Line 1: | Line 1: | ||
{|align=right | |||
|<small>Author: [[{{ns:2}}:virtlink|virtlink]] ([[{{ns:3}}:virtlink|talk]], [[{{ns:-1}}:Contributions/virtlink|contrib]])</small> | |||
|} | |||
<br style="clear:both;"> | |||
; Issue | ; Issue | ||
: I want to delete a complete directory structure, but I don't know if the files it contains are in use. But RMDir ... /R /REBOOTOK doesn't work. | : I want to delete a complete directory structure, but I don't know if the files it contains are in use. But RMDir ... /R /REBOOTOK doesn't work. | ||
Line 7: | Line 11: | ||
; Solution | ; Solution | ||
: Use Delete /REBOOTOK (works with wildcards) and use RMDir /REBOOTOK on an empty directory, or a directory that's about to become empty after a reboot. | : Use Delete /REBOOTOK (works with wildcards) and use RMDir /REBOOTOK on an empty directory, or a directory that's about to become empty after a reboot. | ||
Revision as of 03:05, 30 April 2005
Author: virtlink (talk, contrib) |
- Issue
- I want to delete a complete directory structure, but I don't know if the files it contains are in use. But RMDir ... /R /REBOOTOK doesn't work.
- Cause
- You can't use the /R and /REBOOTOK switches at the same time.
- Solution
- Use Delete /REBOOTOK (works with wildcards) and use RMDir /REBOOTOK on an empty directory, or a directory that's about to become empty after a reboot.