I have the following code
And it works fine on my WinXP Pro box, but on my Win2kPro box I'm told the object doesn't support the method.
I'm fairly certain that upgrading the WScript host on all the Win2k boxes which will need to handle this is not feasible, is there an older method for executing this code?
Thanks,
Rob
Code:
Dim wshShell
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.CurrentDirectory = "D:\test\"
MsgBox WshShell.CurrentDirectory
And it works fine on my WinXP Pro box, but on my Win2kPro box I'm told the object doesn't support the method.
I'm fairly certain that upgrading the WScript host on all the Win2k boxes which will need to handle this is not feasible, is there an older method for executing this code?
Thanks,
Rob