when trying to run this code in an hta file I keep getting the error :
--- object required "Wscript" ---
what's causing this error ??
====== code ======
<html>
<head>
<title>HTA Tools</title>
<HTA:APPLICATION
ID="objHTATools"
APPLICATIONNAME="Tools"
SCROLL="yes"
SINGLEINSTANCE="yes"
WINDOWSTATE="normal"
>
</head>
<SCRIPT Language="VBScript">
Set WshShell = CreateObject("WScript.Shell")
Set Args = WScript.Arguments '<== error on this line
If Args.Count >= 1 Then
vPath = Args(Args.Count-1)
End if
......