Page 1 of 1 1
Topic Options
#16050 - 2002-01-11 10:09 AM Running Application
X Offline
Fresh Scripter

Registered: 2002-01-04
Posts: 28
Loc: Greece
Hi again guys

I have another problem.I am trying to run an ERP application with the following path

C:\DEV6I\BIN\ifrun60.EXE e:\erp_v9\bin\orama orama_logon/orama_logon@DBSFI

The test script i have write is the folloing:
;Lunch ERP Orama
$rc=ReadValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "CurrentVersion")
IF $rc < 7
SHELL ('%comspec% /c start /w C:\DEV6I\BIN\ifrun60.EXE e:\erp_v9\bin\orama orama_logon/orama_logon@DBSFI')
endif

But the message I take is that the file specified cannot be found.Dou you have any idea?

Thank you .

X - The truth is out there.

[ 11 January 2002: Message edited by: X ]

Top
#16051 - 2002-01-11 11:44 AM Re: Running Application
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11631
Loc: CA
X...

Looking at your code:
IF $rc<7 would mean that ALL NT/2000/XP systems would run this code every time they ran the logon script.

You could use this code if you want it to run on all NT/2000/XP systems. I would check something and or mark something to prevent it from running every time.

IF @INWIN = 1
;do your code
ENDIF


As for the line your trying to execute... it is difficult to verify since I don't have the item your trying to launch. My guess is though that you simply need to modify the "" quote marks. Try something like this. Also Notice that the @ on the end now has @@ since the @ is a reserved character in KiXtart already. So to use it you need to double up on it.

code:
$nul='%comspec% /c start /w "C:\DEV6I\BIN\ifrun60.EXE e:\erp_v9\bin\orama orama_logon/orama_logon@@DBSFI"'
shell $nul

Let us know how it goes and if it works or not.

[ 11 January 2002: Message edited by: NTDOC ]

Top
#16052 - 2002-01-11 11:58 AM Re: Running Application
X Offline
Fresh Scripter

Registered: 2002-01-04
Posts: 28
Loc: Greece
Hi ,
I copied the code you wrote and it didn't happen anything.The only thing it did happen is that another dos box opened.

Please help me.

Top
#16053 - 2002-01-11 08:11 PM Re: Running Application
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11631
Loc: CA
X, what version of KiXtart are you using?

Instead of running the code with the shell statement, try this to see what your command line is getting.

code:
$nul='%comspec% /c start /w "C:\DEV6I\BIN\ifrun60.EXE e:\erp_v9\bin\orama orama_logon/orama_logon@@DBSFI"'
;shell $nul
? $nul

This will "show" you what it wants to run on the command line. Then modify or work with the quote " marks to get the program to work.

Let me know.

Top
#16054 - 2002-01-11 08:24 PM Re: Running Application
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

Change the code from NTDOC to:

code:

$nul='%comspec% /c start /w "C:\DEV6I\BIN\ifrun60.EXE" "e:\erp_v9\bin\orama orama_logon/orama_logon@@DBSFI"'
shell $nul


We have insert additional double-quotes

Please verify also the correctness of filename:
"e:\erp_v9\bin\orama orama_logon/orama_logon@@DBSFI"
part: orama orama_logon/orama_logon@dbsfi sounds to have too much orama parts.
greetings.

_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#16055 - 2002-01-11 08:38 PM Re: Running Application
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11631
Loc: CA
Thanks MCA,

Your probably right. I just was not sure if it should be done that way or not. But using my single quotes is probably telling it to be run as a single command and the program is not found as a single command. I was afraid though of the command not getting the parameters (the e:\erp_v9\bin\orama orama_logon/orama_logon@@DBSFI) portion if I split the quotes.

X please give MCA's code a try and let us know.

Top
#16056 - 2002-01-17 09:31 AM Re: Running Application
X Offline
Fresh Scripter

Registered: 2002-01-04
Posts: 28
Loc: Greece
Hi me again.Me with the Orama shortcut.

I tried everything but it does not work.The shortcut is correct but the application does not start.What else can I do?This must works.Any ideas?

The truth is out there.

Top
#16057 - 2002-01-21 05:54 AM Re: Running Application
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

How an user can also start this program?
f.e. from a DOS with following statement:
c:\dev6l\bin\ifrun60.exe e:\erp_v9\bin\orama orama_logon/orama_logon@DBSFI
or like
"c:\dev6l\bin\ifrun60.exe" "e:\erp_v9\bin\orama" "orama_logon/orama_logon@DBSFI"

Is "orama_logon/" a parameter specification?
YES
try also from kixtart

code:

SHELL '%comspec% /c start /w "c:\dev6l\bin\ifrun60.exe" "e:\erp_v9\bin\orama" "orama_logon/orama_logon@DBSFI" '


Previously we think it should be something like:
"e:\erp_v9\bin\orama orama_logon/orama_logon@DBSFI"
but with this new idea it should
"e:\erp_v9\bin\orama" "orama_logon/orama_logon@DBSFI"

Verify also the correctness of "/" symbol in your call.
On windows environment you are running it. Some versions can handle
in a correct way f.e. "My Documents" without the usage of quotations.
greetings.

_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#16058 - 2002-01-21 09:46 AM Re: Running Application
X Offline
Fresh Scripter

Registered: 2002-01-04
Posts: 28
Loc: Greece
Hi again.

I tried your code but nothing at all.The message I recieved is that the system could not find e:\erp\bin\orama.

Something else.Since I cannot lunch the application with the path,can I lunch the application with the link on my desktop?If yes how?I Have written a script but didn't work.

Have any idea?

x-The truth is out there?

Top
#16059 - 2002-01-23 01:36 PM Re: Running Application
YJDax Offline
Lurker

Registered: 2002-01-23
Posts: 1
Hi,

well i had the same problem and here is what worked for me:

The problem is the shell-command does not get the filename right when it submits it to the command interpreter. This involves every command using long filenames with spaces in it.

try this:

SHELL '%comspec% /c start /w ""C:\DEV6I\BIN\ifrun60.EXE e:\erp_v9\bin\orama orama_logon/orama_logon@DBSFI""'

and tell me if it works.

Please take a good look at the end of the above command. There are three (3)!! characters at the end of the line!!

Greetings,
Axel

[ 23 January 2002: Message edited by: YJDax ]

Top
#16060 - 2002-01-24 10:37 AM Re: Running Application
X Offline
Fresh Scripter

Registered: 2002-01-04
Posts: 28
Loc: Greece
I have found the solution.The problem was with the double quotes.Here is the the code which is working:
SHELL "%comspec% /c start /w C:\DEV6I\BIN\ifrun60.EXE e:\erp_v9\bin\orama orama_logon/orama_logon@@DBSFI"

Thank you all for your help.

X - The truth is out there.

Top
#16061 - 2002-01-27 06:10 AM Re: Running Application
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear X,

Thanks for the feedback

So the real problem was only the notation of "orama_logon@dbsfi",
which has to be "orama_logon@@dbsfi".
Your question introduce a new error which cost thirteen days to solve.
greetings.

_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1821 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.128 seconds in which 0.088 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org