|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Unable to get current dir on Win98 (VBScript / JScript)
I have got a VBScript and MS JScript program and am trying to find out the current directory.
Code:
Set objFSO = CreateObject("Scripting.FileSystemObject")
strDir=wshShell.CurrentDirectory
That code works on WinXP but returns undefined when tried on Win98. Does anyone know a way of getting this that works with Win98? |
|
#2
|
|||
|
|||
|
Ok, just realised that the Win98 machine did not have WSH 5.6 installed, it only has WSH 5.
Due to not having the latest version of WSH installed it didn't recognise the command. |
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > Unable to get current dir on Win98 (VBScript / JScript) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|