visustin
["filename.ext"]
[/Lang]
[/DRAW|/BIRDSEYE|/PREVIEW
Parameter | Description |
---|---|
"filename.ext" | File to open in Visustin. Unless a full path is given, the path is relative to the current working directory. The following files are supported:
|
/Lang | Language of source code file. See table below. /Lang is optional, but highly recommended. If /Lang is omitted, Visustin attempts to auto-detect the language. |
/DRAW | After opening a source file, draw a flow chart. |
/BIRDSEYE | After opening a source file, draw a birdseye flow chart. |
/PREVIEW | Open a file and bring up the Print Preview dialog. Visustin will stay running when the dialog closes. |
Open a file and bring up the Print Preview dialog. Visustin will close when the dialog closes. This switch is provided mainly for quick printing of image and Editor files. | |
/PRINTTO "printer" | The same as /PRINT, but the printer named "printer" will be used. This switch is provided mainly for dragging image and Editor files onto a printer icon (Windows shell verb printto). |
/? | Display command line syntax and file extension rules. Also available through the Command line syntax command in the Help menu. |
If a source code file is passed as a parameter with none of /DRAW, /BIRDSEYE, /PREVIEW, /PRINT or /PRINTTO, the file is opened but no flow chart is drawn.
visustin.exe "myfile.cpp" /DRAW
visustin.exe "myfile.cpp" /C /DRAW
visustin.exe "myfile.cob" /COBFIX /BIRDSEYE
visustin.exe "myfile.frm" /VB /PREVIEW
visustin.exe "mypic.gif"
visustin.exe "mypic.gif" /PRINT
visustin.exe "mypic.gif" /PRINTTO "HP LaserJet 5L"
visustin.exe "myjob.vjb"
Switch | Language mode | Alternative switch |
---|---|---|
/ABAP | ABAP | |
/ADA | Ada | |
/AS | ActionScript/MXML | |
/BASH | Shell (bash) | |
/BAT | Batch file | |
/C | C/C++ | /CPP, /C++ |
/C# | C# | |
/CF | ColdFusion | |
/CLIPPER | Clipper | |
/COBFIX | COBOL (fixed, columns 7-72) | |
/COBFREE | COBOL (free format) | |
/COBVAR | COBOL (variable, columns 7-) | |
/CSH | Shell (csh,tcsh) | |
/FORFIX | Fortran (fixed, columns 7-72) | |
/FORFREE | Fortran (free format) | |
/FOXPRO | Visual FoxPro | |
/HTML | HTML, XML | /XML |
/IAR_MSP430 | IAR/MSP430 | |
/JAVA | Java | |
/JS | JavaScript | |
/JCL | JCL | |
/JSP | JavaServer Pages | |
/KSH | Shell (ksh) | |
/LOTUS | LotusScript | |
/MASM | MASM | |
/MATLAB | Matlab | |
/NASM | NASM | |
/PASCAL | Pascal/Delphi | /DELPHI |
/PERL | Perl | |
/PHP | PHP | |
/PWRBAS | PowerBASIC | |
/PWRSC | PowerScript (PowerBuilder) | /POWERSCRIPT |
/PURE | PureBasic | |
/PLI | PL/I | |
/PLSQL | PL/SQL | |
/PYTHON | Python | |
/QB | QuickBASIC, GW-BASIC | /GW |
/RB | REALbasic | |
/REXX | Rexx | |
/RPG3 | RPG III | |
/RPG4 | RPG IV | |
/RPG4FREE | RPG IV **FREE | |
/RUBY | Ruby | |
/SAS | SAS | |
/SH | Shell (sh) | |
/TCL | Tcl | |
/TSQL | T-SQL | |
/VB | Visual Basic, VBA | /VB6, /VBA |
/VB.NET | Visual Basic .NET | |
/VBS | VBScript | |
/XSLT | XSLT |
The switches in the leftmost column are what Visustin uses. Use of the alternative switches is discouraged.
The following switches are deprecated: /COBOLFIXED, /COBOLFREE, /COBOLVARIABLE, /FORTRANFREE, /FORTRANFIXED, /JAVASCRIPT and /ASP. These switches have been used in Visustin versions prior to 7. They are candidates for removal in future versions and their use is discouraged. /ASP can be replaced by /VBS.
/Lang is an optional but highly recommended switch. If /Lang is omitted, Visustin attempts to auto-detect the language of the source code file. It is not always possible, though. Auto-detection is attempted as follows:
1. Detect language by file extension. If file extension clearly tells the language, select that language. If several languages use the same extension, auto-detection fails. To fix, set the desired language as your favorite language (in the Languages menu). Favorite languages are given priority in auto-detection.
2. Detect by Unix #!
operator. If the code starts with the Unix #!
operator, the language is set as per this setting. This rule only works with certain Unix scripts. Example: Load #!/bin/sh
files as Bourne shell code and #!/bin/csh
files as C-shell code.
3. If auto-detection fails, default to previously selected language.
You can test auto-detection by dragging a file from Windows and dropping it to the language dropdown list of the main screen of Visustin.
Current file extension rules and switches can be viewed by choosing Command line syntax in the Help menu. A dash (-) next to an extension means auto-detection is not working for this file extension. Attempt selecting the language as a favorite in the Language menu. An asterisk (*) marks extensions affected by your favorite language settings.