lauraSatellite
Technical User
Hi, I have a script that contains:
set shell = CreateObject("WScript.Shell")
currentDir = shell.CurrentDirectory
I tested this script on a server at work, and it ran fine. I have just installed Windows 2000 server on my own computer, and am trying to get the same script to run on this server. The script bombs out saying:
Error: Object doesn't support this property or method: shell.CurrentDirectory
Code: 800A01B6
If i comment out the above two line of code, and replace them with currentDir = "C:\WhateverFolder" the script runs fine.
Any input as to what might be wrong here would be greatly appreciated.
Thanks.
set shell = CreateObject("WScript.Shell")
currentDir = shell.CurrentDirectory
I tested this script on a server at work, and it ran fine. I have just installed Windows 2000 server on my own computer, and am trying to get the same script to run on this server. The script bombs out saying:
Error: Object doesn't support this property or method: shell.CurrentDirectory
Code: 800A01B6
If i comment out the above two line of code, and replace them with currentDir = "C:\WhateverFolder" the script runs fine.
Any input as to what might be wrong here would be greatly appreciated.
Thanks.