Login | |
|
 |
RE: tweak my script - 7/1/2008 5:27:50 AM
|
|
 |
|
| |
ehvbs
Posts: 2078
Score: 50
Joined: 6/22/2005
From: Germany
Status: offline
|
WScript (the script host object privided by wscript and cscript.exe) is different from the WScript Object you use the get a Shell (same name, different 'persons'). If you look carefully at the .Popup sample from the VBScript Docs: Dim WshShell, BtnCode Set WshShell = WScript.CreateObject("WScript.Shell") BtnCode = WshShell.Popup("Do you feel alright?", 7, "Answer This Question:", 4 + 32) you'll see that If WScript.Popup("Do you want to delete these directories?",0,"Confirm",36) = 6 Then should be If WshShell.Popup("Do you want to delete these directories?",0,"Confirm",36) = 6 Then of course, you need to create this WshShell object before you can use it.
|
|
| |
|
|
|
|
|