Welcome to the VanDyke Software Forums

Join the discussion today!

Go Back   VanDyke Software Forums > Scripting


Thread Tools Rate Thread Display Modes
Old 08-03-2010, 08: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?
Reply With Quote
Old 08-03-2010, 02:31 PM
rtb rtb is offline
VanDyke Technical Support
Join Date: Aug 2008
Posts: 4,305
Hi 85522704,

It is not possible to use the WScript object in SecureCRT scripts. Because of this, I have created a feature request in our SecureCRT development database to add the ability to get the scriptfullname to the SecureCRT API. Should a future release of SecureCRT have this capability, we will post to this forum thread.

If you would like to be notified directly, please complete and submit the form at the following location:
Submit Feature Request

VanDyke Software
Technical Support
Reply With Quote
Old 08-04-2010, 01:14 AM
85522704 85522704 is offline
Registered User
Join Date: Jul 2010
Posts: 2
OK ! I see ,Thank You!
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:13 PM.