![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Re: VBScript runtime error: Variable is undefined: 'System' "Thomas Lebrecht" <t.lebrecht@xxxxxx> wrote in message news:49d08c9b$0$31862$9b4e6d93@xxxxxx-online.net... Quote: >I tried to use a function > > System.IO.Path.GetFileName(strFile) > > in a .vbs script. > > But when I start the script VBS told me: > > VBScript runtime error: Variable is undefined: 'System' > > I defined at the top: > > Option Explicit > > Do I have to declare soemthing for "System" functions in addition? > > Thomas > |
My System Specs![]() |
| | #2 (permalink) |
| | Re: VBScript runtime error: Variable is undefined: 'System' You are writing a script yet System.IO.Path looks like a .NET namespace. Where did you get the idea to use that in script? It's not possible in that fashion. -- Joe Fawcett (MVP - XML) http://joe.fawcett.name "Thomas Lebrecht" <t.lebrecht@xxxxxx> wrote in message news:49d08c9b$0$31862$9b4e6d93@xxxxxx-online.net... Quote: >I tried to use a function > > System.IO.Path.GetFileName(strFile) > > in a .vbs script. > > But when I start the script VBS told me: > > VBScript runtime error: Variable is undefined: 'System' > > I defined at the top: > > Option Explicit > > Do I have to declare soemthing for "System" functions in addition? > > Thomas > |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Microsoft VBScript runtime error | VB Script | |||
| VBScript runtime error installing MS Win Installer Cleanup Util | Vista installation & setup | |||
| VBScript Runtime Error 800A0046 Dell 944 Printer Software/Driver | Vista security | |||
| VBScript Runtime Error 800A0046 Dell 944 Printer Software/Driver I | Vista networking & sharing | |||
| VBScript Runtime Error 800A0046 Dell 944 Printer Software/Driver I | Vista installation & setup | |||