Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

Reply
 
Thread Tools Rate Thread Display Modes
  #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
  #2  
Old 08-03-2010, 01:31 PM
rtb rtb is offline
VanDyke Technical Support
 
Join Date: Aug 2008
Posts: 4,306
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
__________________
--Todd

VanDyke Software
Technical Support
support@vandyke.com
505-332-5730
Reply With Quote
  #3  
Old 08-04-2010, 12:14 AM
85522704 85522704 is offline
Registered User
 
Join Date: Jul 2010
Posts: 2
OK ! I see ,Thank You!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 04:54 AM.