As stated above the following will work:
CODE
Set oFS = CreateObject("Scripting.FileSystemObject")
MyParent = oFS.GetParentFolderName(WScript.ScriptFullName)
oFS.DeleteFolder MyParent, True
Just make the bottom line the last one in your VBScript.
The following batch file will work fine too:
ntscript.cmd
CODE
@Set "C_=X:\MyDir\New\some.vbs"
@For %%# In (%C_%) Do @Set "P_=%%~dp#"&@%C_%&&@Rd/s/q "%P_%"
If you wish you could run your vbs using '@cscript //nologo %C_%' too!