I want to run directory opus from a script.
dopus.exe does the trick. This works:
So far so good. This works:
[code]# $language = "VBScript"
$interface = "1.0"
' Run.vbs demonstrates how to utilize the Windows Scripting Host (WSH) by using
' its 'Run' method to execute other programs. Note the use of nested quotes to pass
' a path that contains spaces along with command line arguments.
Sub Main
Dim shell
Set shell = CreateObject("WScript.Shell")
shell.Run """C:\Program Files\GPSoftware\Directory Opus\dopus.exe"" D:\data"
End Sub
[/code]
Now I want to open directory opus at a different location.
It seems I have a problem when I reference a folder with spaces in the name.
When I try this:
[code]# $language = "VBScript"
$interface = "1.0"
' Run.vbs demonstrates how to utilize the Windows Scripting Host (WSH) by using
' its 'Run' method to execute other programs. Note the use of nested quotes to pass
' a path that contains spaces along with command line arguments.
Sub Main
Dim shell
Set shell = CreateObject("WScript.Shell")
shell.Run """C:\Program Files\GPSoftware\Directory Opus\dopus.exe"" D:\Data\SecureCRT\Scripts\Development\Run External Command"
End Sub
[/code]
I get this:

It seems to read the URL as far as the first space.
Ideas...? Thanks in advance..

