Avatar billede dr.m Nybegynder
08. september 2003 - 11:48 Der er 6 kommentarer og
1 løsning

WshShell.CurrentDirectory

HELP!

I keep on getting C:\my_script.vbs(3, 1) Microsoft VBScript runtime error:
Object doesn't support this property or method: 'CurrentDirectory'

The code:

Dim WshShell
Set WshShell = WScript.CreateObject("WScript.Shell")
WScript.Echo WshShell.CurrentDirectory

Please advise..

Thanks
Avatar billede nmh Nybegynder
08. september 2003 - 11:55 #1
It would be helpfull if you wrote a little more about your situation.
Look her:
http://lists.evolt.org/archive/Week-of-Mon-20020603/114117.html
Avatar billede nmh Nybegynder
08. september 2003 - 11:55 #2
ups her-->here
Avatar billede nmh Nybegynder
08. september 2003 - 12:55 #4
Rune>>Is there any difference?
Your link:
Dim WshShell
Set WshShell = WScript.CreateObject("WScript.Shell")
WScript.Echo WshShell.CurrentDirectory
dr.m:
Dim WshShell
Set WshShell = WScript.CreateObject("WScript.Shell")
WScript.Echo WshShell.CurrentDirectory
Avatar billede dr.m Nybegynder
08. september 2003 - 14:29 #5
Thanks.

I solved it by upgrading cscrip to 5.6 (w2k server had 5.1)
Don't ask me why it solved it, it just did.

Points will be given to Rune for his prompt reply.
Rune, just make a "svar" pls.

Cheers
Avatar billede nmh Nybegynder
08. september 2003 - 15:05 #6
Rune has made an answer already.
Here is an answer from me in case it is me you mean.
Avatar billede dr.m Nybegynder
08. september 2003 - 16:36 #7
doh, my bad.
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Kurser inden for grundlæggende programmering

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester