Author Topic: bc.exe -v option  (Read 224 times)

jcfuller

  • Sr. Member
  • ****
  • Posts: 268
    • View Profile
bc.exe -v option
« on: September 23, 2020, 09:18:53 AM »
Kevin,
  Would a bc.exe -v option be possible?
This would only print what  bc.exe normally prints without the list of options, then quits.

BCX BASIC to C/C++ Translator (c) 1999-2020 by Kevin Diggins
Version 7.5.5 (2020/09/23)  Compiled for 64-bit Windows using MS Visual C++ 


I want it for shelling to a command prompt:
cmd.exe "/K "bc.exe -v

James


MrBcx

  • Administrator
  • Hero Member
  • *****
  • Posts: 714
    • View Profile
Re: bc.exe -v option
« Reply #1 on: September 23, 2020, 10:21:27 AM »
JC -

Yes - It will be in 7.5.6.

c:\Temp>bc -v
BCX BASIC to C/C++ Translator (c) 1999-2020 by Kevin Diggins
Version 7.5.6 (2020/09/23)  Compiled for 64-bit Windows using LLVM-CLANG

c:\Temp>


and ...


 BCX BASIC to C/C++ Translator (c) 1999-2020 by Kevin Diggins
Version 7.5.6 (2020/09/23)  Compiled for 64-bit Windows using LLVM-CLANG

 Usage: BC infile [.bas] [options]
 [-b] Build using user-defined bat file .. ex -b:c:\bat\pw.bat
 [-c] Generate C++ Compatible code
 [-d] DEFINE a constant ... ex. BC MyFile -D:MyConst[=SomeValue]
 [-e] Write ERRORS to BCX.ERR file
 [-f] Output FILENAME... ex. BC MyFile -f:C:\MyFiles\MyFile.c
 [-i] Send Warnings and Errors to INFOBOX
 [-k] KILL the generated BCX generated 'C' file
 [-m] Enable embedded BCX Code in the C translation
 [-n] Enable NO RUNTIME Code Generation
 [-o] OUTPUT a copy of the generated C file to STDOUT
 [-q] QUIET - No output to screen during translation
 [-r] Update BCX Path variable in the Windows REGISTRY
 [-s] Show STATUS of translation by line number
 [-u] Turn UNICODE Support ON
[-v] Show BCX version and build information
 [-w] Enable WARNINGS during translation
 [-x] EXCLUDE Win32 Headers from the resulting C file
 [-z] ZAP (remove DEFAULT headers and libraries from the resulting C file
« Last Edit: September 23, 2020, 10:26:11 AM by MrBcx »

jcfuller

  • Sr. Member
  • ****
  • Posts: 268
    • View Profile
Re: bc.exe -v option
« Reply #2 on: September 23, 2020, 12:37:23 PM »
Excellent.
Thank you,

James