C:\Program Files\pics from home Deleting Files -> The system cannot find the file specified. Removing the Directory -> The directory is not empty. C:\Program Files\my profile.backup Deleting Files -> The system cannot find the file specified. Removing the Directory -> The Directory in not empty. C:\Program Files\hotties Deleting Files -> The system cannot find the file specified. Removing the Directory -> The Directory in not empty. C:\Program Files\tester Deleting Files -> The system cannot find the file specified. Removing the Directory -> The operation completed sucessfully.
I was waiting for that old memory to come alive. iirc, it was about the uninstaller script and how it was called and les didn't talk to me for a while...
Break On Dim $SO $SO=SetOption('Explicit','On') $SO=SetOption('NoVarsInStrings','On') $SO=SetOption('NoMacrosInStrings','On')
Dim $File For Each $File In ReadFile('\\szl-fs9ces1\roxio\delete_profiles.txt') If Exist('C:\Documents And Settings\'+$File) shell "deltree /y 'C:\Documents and Settings\$File'" endif
this doesn't work how do i shell a something that has quotes in the command?
I can get it to work this way shell 'deltree /y "C:\Documents and Settings\dir_to_delete"' but i can't seem to get it to recognize $File
this works: Code:
Break On Dim $SO $SO=SetOption('Explicit','On') $SO=SetOption('NoVarsInStrings','On') $SO=SetOption('NoMacrosInStrings','On')
Dim $File
shell 'deltree /y "C:\Documents and Settings\Dir_to_delete"'
this doesn't Code:
Break On Dim $SO $SO=SetOption('Explicit','On') $SO=SetOption('NoVarsInStrings','On') $SO=SetOption('NoMacrosInStrings','On')
Dim $File For Each $File In ReadFile('\\Server\Share\delete_these_files.txt') If Exist('C:\program files\'+$File) shell 'deltree /y "C:\program files\' + $File + '"' endif
Well DELTREE is not a valid program on 2000/XP/2003 but the RD command is as I've shown before.
The following code should work just fine on Windows NT/2000/XP/2003 as long as the user has Administrator rights on the system and there are no files locking the profile.
Quote: can get it to work this way shell 'deltree /y "C:\Documents and Settings\dir_to_delete"'
What operating systems are we talking about here? I certainly hope the Air Force or whomever is not still running Windows 95/98 systems in production.
DELTREE does not exist on my NT4/2000/XP/2003 systems so if it's working (semi-working) for you then we must be talking about a Windows 95/98/ME system which would mean the RD code I wrote would not work either as Windows 95/98 used a different switch as I recall.