Page 1 of 1 1
Topic Options
#160967 - 2006-04-21 12:55 AM Shell -VS- Run and etc...
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
I am attempting to do a shell, so as to pause script processing, however the way that I am doing it does not seem to pause the script.
Code:

Shell '%Comspec% /c Start excel.exe "\\Aserver\software$\Documentation\somefile.xls"'



I am using the same idea later on with this bit of code and it seems to be working.

Code:

Shell 'C:\Progra~1\SecureCRT\SecureCRT.EXE /ARG '+$Asked+' /ARG '+$Prompt+' /SCRIPT "c:\_Bin\Config3.VBS"'
Run "C:\Program Files\3Com\3CDaemon\3CDaemon.EXE"
Sleep 10
Shell 'C:\Progra~1\SecureCRT\SecureCRT.EXE /ARG '+$Asked+' /ARG '+$Prompt+' /SCRIPT "c:\_Bin\Config.VBS"'
Shell 'C:\Progra~1\SecureCRT\SecureCRT.EXE /ARG '+$Asked+' /ARG '+$Prompt+' /SCRIPT "c:\_Bin\Config2.VBS"'



I am fairly sure that it is how I am calling the spreadsheet.
_________________________
Today is the tomorrow you worried about yesterday.

Top
#160968 - 2006-04-21 01:18 AM Re: Shell -VS- Run and etc...
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Usually when invoking the Start command, the /wait switch should accompany it.

I don't believe you need to have excel.exe in the line either.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#160969 - 2006-04-21 01:42 AM Re: Shell -VS- Run and etc...
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
When using the Start command, the first parm is expected to be the window title. In testing, I found that the /Wait switch was needed. Here is a bit of test code.
Code:
break on
Shell 'cmd /c start /wait "waiting" "C:\Documents and Settings\LLigetfa\My Documents\Expense Reports\Thorold.xls"'
;Shell 'cmd /c start "waiting" "C:\Documents and Settings\LLigetfa\My Documents\Expense Reports\Thorold.xls"'

'hit any key' ?
get $
'done' ?



Edited by Les (2006-04-21 01:46 AM)
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#160970 - 2006-04-21 02:00 AM Re: Shell -VS- Run and etc...
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
The wait is what I needed.
Many thanks
_________________________
Today is the tomorrow you worried about yesterday.

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 2220 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.047 seconds in which 0.024 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