![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
In a script I start a exe with the script step: URL open "file://c:/program files/myExeDir/myProgram.exe" This works fine The new version of myProgram wants a parameter. I'' ve tried: "file://c:/program files/myExeDir/myProgram.exe myParam" or "file://c:/program files/myExeDir/myProgram.exe" "myParam" But both ways fail. Any ideas? Greetings, Kees |
#3
| |||
| |||
|
|
In a script I start a exe with the script step: URL open "file://c:/program files/myExeDir/myProgram.exe" This works fine The new version of myProgram wants a parameter. I'' ve tried: "file://c:/program files/myExeDir/myProgram.exe myParam" or "file://c:/program files/myExeDir/myProgram.exe" "myParam" But both ways fail. |
#4
| |||
| |||
|
|
Parameters are often entered with a / or go back to the previous version. If that worked, why change it? |
#5
| |||
| |||
|
|
Kees wrote: In a script I start a exe with the script step: URL open "file://c:/program files/myExeDir/myProgram.exe" This works fine The new version of myProgram wants a parameter. I'' ve tried: "file://c:/program files/myExeDir/myProgram.exe myParam" or "file://c:/program files/myExeDir/myProgram.exe" "myParam" But both ways fail. The problem is that URLs don't like spaces. You can try it as: "file://c:/program files/myExeDir/myProgram.exe+myParam" or "file://c:/program files/myExeDir/myProgram.exe%20myParam" Or you can instead use the Send Event script step with: "c:/program files/myExeDir/myProgram.exe myParam" (including the quotes this time) |
#6
| |||
| |||
|
|
On Tue, 13 Oct 2009 18:56:34 +0200, "Ursus" <ursus.kirk (AT) ziggo (DOT) nl wrote: Parameters are often entered with a / or go back to the previous version. If that worked, why change it? I don't understand what you mean. If I put a / before the parameter it still doesn't work. The program that I want to start is used to export/convert the FM database to a MySQL database. This program is used by 2 FM scripts in 2 FM databases (I wrote the external program). The parameter is used to tell which ini file the external progam should use (the ini stores corresponding MYSQL fieldnames and MYSQL field datatypes for each FM field). Anyway this new version of the external program is nescessary. Greetings, Kees |
#7
| |||
| |||
|
|
On Tue, 13 Oct 2009 12:46:06 -0700, Howard Schlossberg howard (AT) nospam (DOT) fmprosolutions.com> wrote: I've tried Send Event with 'specify file' filewin:/C:/Program Files/exporteer adressen/verzendAdressen.exe without params and it works. But when I try filewin:/C:/Program Files/exporteer adressen/verzendAdressen.exe myIni.ini I get: The file verzendAdressen.exe myIni.ini could not be found. FM interprets 'verzendadressen.exe myIni.ini' as one filename. |
#8
| |||
| |||
|
|
You need to have quotes around any portion of it that has spaces. Otherwise, Windows' command line interpreter reads a space as the end of the path. For example, both of these work for me: 1) This one needs quotes around the program pathname because of the spaces. But the 2nd and 3rd parameters do not require quotes because there are no spaces within them: "C:\Program Files\Real\RealPlayer\realplay.exe" /startpos:00:00:00.0 http://yp.shoutcast.com/sbin/tunein-station.pls?id=8291 |
#9
| |||
| |||
|
|
Kees, Did I understand correctly you wrote the program you want to call? If that is the case you could write two versions (or as much as you need) each reading its own INI file then starting them with a calculated commandline that starts the required version if MyIni = a then "file://c:/program files/myExeDir/myProgramA.exe" else "file://c:/program files/myExeDir/myProgramB.exe" end if Would that work? |
![]() |
| Thread Tools | |
| Display Modes | |
| |