Difference between revisions of "ScriptBasic:UsersGuide 9.19"

From ScriptBasic
Jump to: navigation, search
(New page: [Contents]<br /> :9. General Language Format<br /> =9.19. #!/@goto= [<<<] [[ScriptBasic:UsersGuide...)
 
(No difference)

Latest revision as of 21:15, 28 December 2007

[Contents]

9. General Language Format

9.19. #!/@goto

[<<<] [>>>]


After the previous two sections here is a small trick that allows you to have a ScriptBasic program that can be executed under UNIX as well as under Windows just typing the name of the BASIC program file and without any modification.

 #! /usr/bin/scriba
 goto start
 start:
 
 scriptbasic program lines
 

 rem """ :
 start 
 @echo off 
 scriba %0 %1 %2 %3 %4 %5 %6 %7 %8 %9 
 rem """
 

Unfortunately under Windows NT the command interpreter will complain about the very first line. However in addition to that there is no other issue.


[<<<] [>>>]