Welcome to the VanDyke Software Forums

Join the discussion today!

Go Back   VanDyke Software Forums > Scripting

Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 01-24-2018, 09:52 AM
mschaafs mschaafs is offline
Registered User
Join Date: Oct 2017
Posts: 27
Question Space in Path - Failed to open script file

Good morning, I am having an issue where the script argument being passed to SecureCRT has a space in the filepath and is not being fully read. For instance: "C:\Users\someuser\Documents\This Folder\script.js" is being seen as "C:\Users\someuser\Documents\This", and so is saying "The system cannot find the file specified." It is being passed via the script_path var in the following call:

nResult = objShell.Run( _
        Chr(34) & securecrt_path & Chr(34) & " /SCRIPT " & script_path & _
        " " & arguments & _
        " " & protocol & " /PASSWORD " & Password & _
        " " & Username & "@" & host, 5, True)
Reply With Quote

arguments , failed , path , script , space

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 11:30 AM.