Command Line Options (Overview)

Previous  Next

All functions of this program may also be called from within "batch files" using so-called "command line options". This is of special interest to companies that have to perform many installations.

 

Call:

BSDOS.EXE [/Hidden] [/File[:Script]] [/MBR[:File][,HDDn]] [/ClearMBR[,HDDn]]

BSWin.exe [/Partition[:n[,HDDn][=tt|:File]|:[NNN]-[s][,HDDn]|,HDDn]]

         [/Install[:Profi][,HDDn]] [/Uninstall[,HDDn]] [/Status[,HDDn|:File]]

         [/Dummies[:On|:Off][,HDDn]] [/Bootprofile[:n|:File]] [/Time[:n|:Off]]

         [/Reboot[:n|:Off]] [/Password:PPP[-NNN]] [/?]

 

/Hidden

Suppresses screen output.

Return:

None.

 

/File

Reads commands from respective file of "BSDOS.SCR" or "BSWin.scr". Details in the following section.

Return:

Taken over by last command or "0", if the file "Script" was not found.

 

/File:Script

Reads commands from file "Script". Details in the following section.

Return:

Taken over by last command or "0", if the file "Script" was not found.

 

/MBR

Reinitializes the bootstrap in the master boot record.

Return:

"1", if successful.

 

/MBR:File

Loads the master boot record.

Return:

"1", if successful.

 

/ClearMBR

Deletes die MBR partition table(s).

Return:

"1", if successful.

 

/Partition

Indicates the partition table.

Return:

Number of existing partitions.

 

/Partition:NNN-s

Adds a new partition. For this partition will be added a new bootprofile with only this partition if the bootmanager is installed.

NNN: Name of the bootprofile

s: Size in megabytes

The "-" has to be given also the "s" is not present.

Return:

Count of partitions after adding the partition.

 

/Partition:n

Activates the n.partition.

This parameter may only be used if the bootmanager is not installed.

Return:

"n", if partition exists.

 

/Partition:n=tt

Changes the type of the n. partitons.

tt is the type in hex

Return:

"n", if partition exists.

 

/Partition:n:File

Loads the "n"th partition from the file "file".

Return:

"n", if partition exists.

 

/Install

Installs the bootmanager in the standard mode on the harddisk.

Return:

"1", if successful.

 

/Install:Profi

Installs the bootmanager in the profi mode on the harddisk.

Return:

"1", if successful.

 

/Uninstall

Uninstalls the bootmanager from the harddisk.

Return:

"1", if successful.

 

/Status

Indicates whether the bootmanager has been installed on the harddisk (including mode).

Return:

If the bootmanger is installed: selected bootprofile; otherwise "0".

 

/Status,HDDx

Indicates whether the bootmanager has been installed on the harddisk.

Return:

If the bootmanger is not installed: "0".

If the bootmanger is installed in standard mode: "1".

If the bootmanger is installed in profi mode: "2".

 

/Status:File

Write the BootStar Options into the file "File". Functions only if the bootmanager is installed.

Return:

"1", if successful.

 

/Dummies

Shows if the BootStar Dummies are enabled. Functions only if the bootmanager is installed in profi mode.

Return:

"1", if enabled.

 

/Dummies:On

BootStar Dummies will be turned off. Functions only if the bootmanager is installed in profi mode.

Return:

"1", if successful.

 

/Dummies:Off

BootStar Dummies will be turned on. Functions only if the bootmanager is installed in profi mode.

Return:

"1", if successful.

 

/Bootprofile

Displays the bootprofile table. Functions only if the bootmanager is installed.

Return:

Number of bootprofiles.

 

/Bootprofile:n

Activates the "n"th bootprofile. Functions only if the bootmanager is installed.

Return:

"n", if the bootprofile exists.

 

/Bootprofile:File

Loads the bootprofile table from the file "file". All already existing bootprofiles will be deleted.

Return:

Number of bootprofiles.

 

/Time:n

Indicates in seconds the time that will elapse until booting. Functions only if the bootmanager is installed.

Return:

Time in seconds (255, if deactivated).

 

/Time:Off

No automatic booting.

Return:

Time in seconds (255, if deactivated).

 

/Reboot

Reboots the system (reset).

 

/Reboot:n

Reboots the system with the "n"th bootprofile (reset). Functions only if the bootmanager is installed.

 

/Reboot:Off

Turn off the system (requires "Advanced Power Management v1.2").

Return:

"0", if not successful.

 

/Password:PPP-NNN

Permits calling the program and, if needed, creates a new password. This command might have to be issued first!

PPP: Password for this program

NNN: New password for this program

Return:

"1", if incorrect password was indicated.

 

/?

Displays this help.

Return:

"1", if the bootmanager is active.

 

The parameter "[,HDDn]" indicates the harddisk.

All entries start with "1" (e.g., 1st harddisk: ",HDD1"; 1st partition: "/Partition:1").

The return value "0" (zero) always refers to an error (if not indicated otherwise).

 

 

See also:

Script File

Config File

Return Values Using Exit Code

Night Service