Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

Notices

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-03-2010, 07:58 AM
85522704 85522704 is offline
Registered User
 
Join Date: Jul 2010
Posts: 2
Post how to get the running script file name

dear all
sorry ,I do not good at english! but I realy need a help to finish my work !
I use the function follow:

Dim f,g_shell,g_fso,wscript
Set g_shell = CreateObject("WScript.Shell")
Set g_fso = CreateObject("Scripting.FileSystemObject")
f = g_fso.GetFile(WScript.scriptfullname).name

but response an error with "Wscript" !
how to get the current running script file name?
thanks
Reply With Quote
 

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 11:33 PM.