Symantec 10024709 User Manual

Page of 221
155
Command-line switches
Command-line switches
-afile=filename
Replaces the default abort error log file name, Ghosterr.txt, with the directory and file 
given in filename.
-auto
Automatically names spanned image files during creation. Using this switch avoids the 
user prompt that asks for confirmation of the next destination location for the remainder 
of the image file that is being loaded. This switch is the default behavior for Norton Ghost.
-batch
Batch mode switch. Prevents abort messages from waiting for user acknowledgment, and 
removes user interaction prompts. The return value of Ghost.exe must be checked to 
identify whether the operation was successful. Norton Ghost returns 0 on success and 1 or 
higher on failure or error.
-bfc
Handles bad FAT clusters when writing to disk. If this switch is set, and the target 
partition is FAT, Norton Ghost checks for and works around bad sectors. This option may 
slow Norton Ghost operation substantially.
-bootcd
When writing an image directly to a CD/DVD writer, makes the CD/DVD bootable. You 
need a bootable floppy disk in drive A. If you use the -sure switch with -bootcd, and a 
floppy disk is not in drive A, then a non-bootable CD/DVD is created.
-buffersize=x
Ghost creates an image file using a small buffer where x = number of KB. The size of the 
buffer is automatically calculated by Norton Ghost. The buffersize switch lets you override 
this size. You can set the buffer size value from 1 to 32.
-chkimg,filename
Checks the integrity of the image file indicated by filename.
-clone
Ghost.exe operation switch. This switch allows automation of Ghost.exe operations and 
has a series of arguments that define the operation parameters. 
-cns
Reverts the naming of spanned files to the system used by versions of Norton Ghost prior 
to Symantec Ghost 6.5. If this switch is not used, then the naming of spanned files 
conforms to Microsoft application guidelines. You do not need to use this switch when 
reading an existing file. Use this switch when the first five characters in a file name must be 
unique. For example: 
With -cns
Without -cns
Filename.gho
Filename.gho
Filename.001
Filen001.ghs
Filename.002
Filen002.ghs