Forum
Stop vb to open bas file - Printable Version

+- Forum (https://www.boriel.com/forum)
+-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12)
+--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11)
+---- Forum: Help & Support (https://www.boriel.com/forum/forumdisplay.php?fid=16)
+---- Thread: Stop vb to open bas file (/showthread.php?tid=803)



Stop vb to open bas file - Odie - 06-09-2017

I am new to this

1. I have made a file Hello.bas
2. In the folder where the ZXB files are I have but the file hello.bas
3. I open cmd connad file and enter zxb.py hello.bas

Now vb. net is opening the py file, and it does noting.

How can I stop VB to open this files.


Re: Stop vb to open bas file - boriel - 06-09-2017

I guess you're using Windows.
If you're using windows, better use the .exe version, here: <!-- m --><a class="postlink" href="http://www.boriel.com/wiki/en/index.php/ZX_BASIC:Archive#Latest_Development_Version">http://www.boriel.com/wiki/en/index.php ... nt_Version</a><!-- m -->
(see 1.5.2 windows .exe zip package)

Uncompress that zip archive in a new *empty* directory, and use:
Code:
zxb -taB Hello.bas



Re: Stop vb to open bas file - Odie - 06-12-2017

Hi

Thank you, I did download this version, I just use what you said, and it is working, thank you


Re: Stop vb to open bas file - Odie - 06-12-2017

Hi

Where can I found more info, I did see helo on this zxb.py hello.bas, this one did not worked
but your code zxb -taB Hello.bas did work, so where do I found more info on the one you used

I am new to this, I am trying to learn assembly, so this zx compiler and assembly is new to me.


Re: Stop vb to open bas file - boriel - 06-12-2017

There is a wiki containing a lot of information an examples here: <!-- m --><a class="postlink" href="http://www.boriel.com/wiki/en/index.php/ZXBasic">http://www.boriel.com/wiki/en/index.php/ZXBasic</a><!-- m -->
Concretely, the command line options info is available here: <!-- m --><a class="postlink" href="http://www.boriel.com/wiki/en/index.php/ZX_BASIC:Zxb#Command_Line_Options">http://www.boriel.com/wiki/en/index.php ... ne_Options</a><!-- m -->


Re: Stop vb to open bas file - Odie - 06-12-2017

Thank you

So the -taB is for

t = tap file
a = autorun
B = Basic

Is this correct, or do I have it wrong


Re: Stop vb to open bas file - boriel - 06-12-2017

That's it! :wink:

You can group multiple single-letter (single-dashed) options together:
zxb -t -a -B => zxb -taB


Re: Stop vb to open bas file - Odie - 06-12-2017

Thank you Boriel