Guide to Using SafeHouse

Appendix B
DOS Errorlevel Codes

The SD.EXE utility can be used in DOS batch files and network login scripts. The Errorlevel result code returned can be tested to determine the success or failure of the operation.

Listed below are the messages and DOS Errorlevel result codes returned by SD.EXE.

Code Description
0 No error.
1 Canceled.
2 <Not Used>
3 Unknown error.
4 Internal error.
5 Invalid error code.
20 Disk error.
50 Drive access could improve if the host drive is defragmented.
51 Your password has expired. You have X days left to change it.
100 Initialization failure.
101 Out of memory.
102 The SAFEDISK driver is not installed.
103 The SAFEDISK driver is not the right version.
104 Protected/Real mode failure.
110 Volume filename missing
111 Volume filename formatted incorrectly.
112 Volume cannot reside on map drive.
113 Volume file not found.
114 Cannot open volume file.
115 Cannot write to volume file.
116 Volume is not a SAFEDISK volume.
117 Volume is already in use.
118 Volume and SAFEDISK driver are incompatible versions.
119 Volume uses unsupported encryption algorithm.
120 Volume file resides on incompatible drive.
121 Volume file has been damaged and is unmappable.
122 Unable to lock volume file for mapping.
123 Unable to lock host drive for mapping.
124 Unable to lock SafeDisk drive for mapping.
125 Unable to communicate with compressed host drive.
130 Target drive missing.
131 Target drive is not a SAFEDISK drive.
132 Target drive is already in use.
133 No drive specified, but all drives are currently mapped.
134 There are files open on the target drive.
135 Cannot unmap drive - drives must be mapped and unmapped in the same VM.
140 Password missing.
141 Password is invalid length or contains invalid characters.
142 Incorrect password.
143 Password has expired, please change it before mapping this host file.
144 Verify password does not match original.
145 New password is not different.
150 Incorrect ActivCard response.
160 Lockbox file not found.
161 Cannot open lockbox file.
162 No valid password found in lockbox.
170 Filename is missing.
171 File already exists.
172 Size is missing.
173 Size is too large. Not enough space to create file.
174 Size is too large. Drives must be less than 2048 mb.
175 Size is too small, or expand limit is too large.
176 Size is larger than supported by the operating system.
180 Cannot change drive letters, invalid starting drive letter.
181 Cannot change drive letters, a SAFEDISK drive is mapped.
182 Cannot change drive letters, Windows is running.
183 Cannot change drive letters, the LASTDRIVE statement doesn't allow room.
184 Cannot change drive letters, a requested drive letter is in use.
190 Invalid size for drive expansion.