forked from george-hopkins/usbip-windows
-
Notifications
You must be signed in to change notification settings - Fork 353
External Program Integration
KyungWoon Cho edited this page Jan 24, 2021
·
2 revisions
- usbip.exe tries to add features to support external program integration.
- exit code of usbip.exe are consistently adjusted
- 0: success
- 1: invalid command usage
- other values: means error whose value is dependent on command
- attach command with
-t
displays an assigned port only with exit code 0- only integer string will be shown in order to easily parse port number.
- message string will be displayed with non-zero exit code if there's an error.
CMD> usbip.exe attach -r <host> -t -b 1-1
0
CMD>
- port command is able to check if attached device is still vaild or not.
CMD> usbip.exe port -p 0
=======
output
=======
CMD> echo %errorlevel%
0
CMD>