Major Posted March 8, 2005 Share Posted March 8, 2005 I do unattended windows Xp with some programs, the cleanup.cmd does his work, all of the files and directories have been deleted but only one file hasnot been deleted, and i have tried many methods to delete it but always it has been there, it let me the file: C:\Install\TMPGEnc.DVD.1.6.26.73\TDA-1.6.26.73-install-EN.exehere is my RunOnceEx of the file:REG ADD %KEY%\015 /VE /D "Tmpgenc DVDAuthor 1.6.26.73" /fREG ADD %KEY%\015 /V 1 /D "%systemdrive%\install\Tmpgenc.DVD.1.6.26.73\SetupDVDAuthor-1.6.26.73.exe" /fREG ADD %KEY%\015 /V 2 /D "%systemdrive%\install\Tmpgenc.DVD.1.6.26.73\RegisterDVDAuthor.exe" /fREG ADD %KEY%\015 /V 3 /D "REGEDIT /S %systemdrive%\install\Tmpgenc.DVD.1.6.26.73\DVDAuthor.reg" /fHere is my cleanup.cmd of the part concerning the fileRD /S /Q "%systemdrive%\install\"Any Suggestions Please?? Link to comment Share on other sites More sharing options...
erik_demon Posted March 8, 2005 Share Posted March 8, 2005 Are you sure that the file isn't still in use?if it is windows will not delete the file.You can try to imput a taskkill to be sure that the file isn't still used when you delete it. Link to comment Share on other sites More sharing options...
Major Posted March 8, 2005 Author Share Posted March 8, 2005 Yes you are right I must put these line?Taskkill /F TDA-1.6.26.73-install-EN.exeThe problem is that this process isnt seen, so do you think it is will be killed? Link to comment Share on other sites More sharing options...
Martin Zugec Posted March 8, 2005 Share Posted March 8, 2005 Download small program handle from sysinternals... Then just from cmd use command handle TDA-1.6.26.73-install-EN.exe Then U will see which process is holding that file.Then U just need to include command wmic process where name="process.exe" call terminate , where process.exe is name of the process holding that file Link to comment Share on other sites More sharing options...
gunsmokingman Posted March 8, 2005 Share Posted March 8, 2005 Here A VBS Script That Will Remove Any Folder Dim Shell, SD, fso V = Vbcrlf on error resume next Set Shell = WScript.CreateObject("WScript.Shell") Set fso = CreateObject("Scripting.FileSystemObject") SD = Shell.ExpandEnvironmentStrings("%SystemDrive%") fso.DeleteFolder( SD & "\Install") shell.popup "Clean Up Completed", 3, "Remove Install Folder", 0+32 Link to comment Share on other sites More sharing options...
Major Posted March 9, 2005 Author Share Posted March 9, 2005 I Have tried both of them and they work Thanks very much Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now