Just put HALT at the point where the script exits. When a VIEW script is started from an icon, it automatically exits when the program terminates. If a VIEW script is started from the command line, it returns to the command line when the script terminates. This is most likely why you are seeing different behavior.
HALT exits the script to the command prompt no matter how the script was started. Have fun! -Bo REBOL Consultant > > Sorry if this has been asked before, but I couldn't find any similar post on >eScribe, so here goes. > > I'm using /View on Windows 2000. I have a script that reads filenames from a >directory, combines > their names, then prints out the new string, just using "print". It's very simple. >But if I run this from > a command prompt in Windows 2000, I think it is printing to a REBOL window, then >closing that > window right away. On Unix, the command line works differently and I see what is >printed right there, > as there is no extra window involved. > > So as it stands right now, I have a script that works on Linux but not on Windows. >To be more > accurate, it works in both, you just can't see the result in Windows. But >nonetheless, I can't > just take my script to a different OS and run it. > > I don't want to put extra code in the script to handle this, but I don't see any >command line option > that would help. Any other ideas? > > mike > > > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > > -- > To unsubscribe from this list, please send an email to > [EMAIL PROTECTED] with "unsubscribe" in the > subject, without the quotes. > -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
