Nomadturk
-
Joined
-
Last visited
Posts posted by Nomadturk
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Buraya gidip Mass Storage Drivers paketini indir. İndirdiğin dosyayı bir klas
-
-
Edited by Nomadturk
Well, this way you can delete folders. But this is as much i could do it. This script below deletes files any folders starting with "7z" from within your default users directory.
BUT, if there are any files in that directories, you may need to run the script twice. It first deletes the inner contents of directories. Second run deletes the folders themselves. (Sometimes... 3-4 runs needed.)
I don't know if you can run this at installation stage. But if you can, you can do it by the code below.
wscript DeleteFolders.vbs
Name this as DeleteFolders.vbs and try.
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colFolders = objWMIService.ExecQuery _
("Select * from Win32_Directory where Name Like '%C:\\Documents and Settings\\Default User\\7z%'")
Set colFiles = objWMIService.ExecQuery _
("Select * from Win32_Directory where Name Like '%C:\\Documents and Settings\\Default User\\7z%\\'")
For Each objFolder in colFolders
errResults = objFolder.Delete
NextWell, give it a try. Hope it might help you.
I sure learnt something while searching for this. (:
You may improve it yourself.
-
-
-
Edited by Nomadturk
For that, i'm using a custom cmd file to remove leftover files that i don't want.
Try using the code below. When i tried, it worked.
Save it as Cleanup.cmd and add it to your RunOnceEx.cmd file.
Cleanup.cmd
cmdow @ /HID
@echo off
DEL /F /Q "%systemdrive%\Documents and Settings\Default User\7z*.tmp"
EXITAlso, i was using this for folder deletions.
del "%systemdrive%\Documents and Settings\Default User\OpenOffice.org 2.4 (tr) Installation Files" /Q /S /F
-
SmitFraudFix v2.387 (WinXP, Win2K)
in Real AddOns/Update Packs
Fransızca siteyi vermişsin.
İngilizce site adresi