View Single Post
  #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