rertrt Posted June 19, 2012 Posted June 19, 2012 (edited) Hi guys, I create a folder name "Test" in E driver and create a Jscript in it. Below are the script code: Shell = new ActiveXObject('WScript.Shell'); fso = new ActiveXObject('Scripting.FileSystemObject'); fso.DeleteFile(WScript.ScriptName) fso.DeleteFolder('E:\\Test',true); Shell.Popup('Uninstall Success.', 0, 'Info', 0 | 64); An "Permission Denied" error occur when I run above script because when the script try to delete the folder, the folder is in used by the script itself. Please help ,thx. Edited June 19, 2012 by rertrt
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