Page 1 of 1 1
Topic Options
#114155 - 2004-02-17 11:32 AM display a file
juanbabi Offline
Fresh Scripter

Registered: 2004-02-09
Posts: 15
Hi !
I am starting to learn kix so I hope I dont annoy any one with my questions:
I wrotr in a kix script only one line:

DISPLAY "c:\work12"

the file exist but it doesnt display on the scring.why ?

thanks very much !!!

Top
#114156 - 2004-02-17 11:35 AM Re: display a file
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
1) What is the version of KiXtart?

2) Does the file have an extension? Is it "C:\work12.txt" or "c:\work12.doc"?

Top
#114157 - 2004-02-17 11:36 AM Re: display a file
juanbabi Offline
Fresh Scripter

Registered: 2004-02-09
Posts: 15
the script runs for a second and than closed without displaying nothing.
Top
#114158 - 2004-02-17 11:40 AM Re: display a file
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Try running it from the command line (CMD shell).

The output is sent to the console, so the file may display and the console window will close before you get a chance to see the output.

You can try adding "Sleep 10" after the display to keep the console open for 10 seconds, or '"Hit a key:" Gets $Key' to wait for a keypress, or even 'Shell "notepad.exe c:\work12"' to display the file in notpad if you don't want to use the console.

Top
#114159 - 2004-02-17 12:40 PM Re: display a file
juanbabi Offline
Fresh Scripter

Registered: 2004-02-09
Posts: 15
thanks !!

I inserted sleep 10.

Top
#114160 - 2004-02-17 04:23 PM Re: display a file
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
so, it did display after all!
your eyes just were too slow for you to notice it
_________________________
!

download KiXnet

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

Generated in 0.088 seconds in which 0.062 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