install.bat

来自「This is a program that I wrote many year」· Batch 代码 · 共 71 行

BAT
71
字号
@echo off
if %1 .==. goto mesexit
if (%1)==(?) goto instruct
if (%1)==(-?) goto instruct
if (%1)==(/?) goto instruct
if (%1)==(/h) goto instruct
if (%1)==(-h) goto instruct
if %2 .==. goto mesexit

if exist %1:\%2\*.* goto nomkdir

md %1:\%2

:nomkdir

copy smartcop.* %1:\%2
echo device=%1:\%2\smartcop.sys > %1:\%2\smartcop.ini
if exist FLOPATCH goto flo

echo The file smartcop.sys is needed if you want to access disks with
echo nonstandard formats.
echo.
echo Do you want to add smartcop.sys to your config.sys file(Y/N)?
echo The line "device= %1:\%2\smartcop.sys" will be added if you do.
:rekey
getkey.com
if errorlevel 89 if not errorlevel 90 goto doit
if errorlevel 121 if not errorlevel 122 goto doit
if errorlevel 78 if not errorlevel 79 goto noit
if errorlevel 110 if not errorlevel 111 goto noit
if errorlevel 13 if not errorlevel 14 goto noit
goto rekey

:flo
echo Smartcop.sys is already installed - Skipping Smartcop.sys instalation.
echo.
echo.
echo If the new version of smartcop.sys is in another directory than what is in
echo the config.sys file then the config.sys must be changed.
echo Add this line in the config.sys if necessary -- device=%1:\%2\smartcop.sys.
echo And remove the old reference to smartcop.sys.
pause
goto finbak

:noit
echo.
echo.
echo If you later decide to put smartcop.sys in your config.sys then add 
echo the line "device=(path)\smartcop.sys".
pause
goto finbak

:doit
copy c:\config.sys + %1:\%2\smartcop.ini c:\config.sys
:finbak
del %1:\%2\smartcop.ini
%1:
cd \%2
smartcop.exe
goto finadd

:mesexit
echo.
echo Smartcopy not installed!
echo.
:instruct
echo Command line - install (drive letter without ':') (directory without first '\')
echo To install in  d:\util          -- install d util
echo Or  in c:\util\diskutil\smart   -- install c util\diskutil\smart
:finadd

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?