ewinckers
05-21-2001, 10:01 AM
I am running a script, either local of from a networked drive, in Windows NT (4.0) that acts like a Batch file.
The user specifies some options, which the script uses to genereate environment settings and a command-line statement to be executed.
The script is rather straight forward and not very complex.
The problem is that when the script is executed by some 'normal' user we get an error-message and the script halts.
We have two types of error-messages, depending on how the script was executed:
1) "Object doesn't support this property or method: 'TheForm.fName'"
This message is not very precise.....
2) Permission denied error in line xx
In the specified line(s) of the script there is a "CreateObject" function:
Set WSHShell = WScript.CreateObject("WScript.Shell")
set Shell = CreateObject("Wscript.Shell")
set SysEnv = WshShell.Environment
My questions are:
- Is this a know problem?
- Is is possible that not all (types of) users are granted to execute this function?
- Is there any way, other than granting every user Admin-rights?
Please advice
The user specifies some options, which the script uses to genereate environment settings and a command-line statement to be executed.
The script is rather straight forward and not very complex.
The problem is that when the script is executed by some 'normal' user we get an error-message and the script halts.
We have two types of error-messages, depending on how the script was executed:
1) "Object doesn't support this property or method: 'TheForm.fName'"
This message is not very precise.....
2) Permission denied error in line xx
In the specified line(s) of the script there is a "CreateObject" function:
Set WSHShell = WScript.CreateObject("WScript.Shell")
set Shell = CreateObject("Wscript.Shell")
set SysEnv = WshShell.Environment
My questions are:
- Is this a know problem?
- Is is possible that not all (types of) users are granted to execute this function?
- Is there any way, other than granting every user Admin-rights?
Please advice