Conversione di MS-DOS Fascicolatore CONVERT.BAT e file GETPATH.BAT

Il presente articolo è stato tradotto tramite il software di traduzione automatica di Microsoft e non da una persona. Microsoft offre sia articoli tradotti da persone fisiche sia articoli tradotti automaticamente da un software, in modo da rendere disponibili tutti gli articoli presenti nella nostra Knowledge Base nella lingua madre dell’utente. Tuttavia, un articolo tradotto in modo automatico non è sempre perfetto. Potrebbe contenere errori di sintassi, di grammatica o di utilizzo dei vocaboli, più o meno allo stesso modo di come una persona straniera potrebbe commettere degli errori parlando una lingua che non è la sua. Microsoft non è responsabile di alcuna imprecisione, errore o danno cagionato da qualsiasi traduzione non corretta dei contenuti o dell’utilizzo degli stessi fatto dai propri clienti. Microsoft, inoltre, aggiorna frequentemente il software di traduzione automatica.

107158
Questo articolo è stato archiviato. L’articolo, quindi, viene offerto “così come è” e non verrà più aggiornato.
Sommario
In questo articolo contiene voci di testo del "MS-DOS 6.2 conversione disco per utenti di Stacker" CONVERT.BAT e file GETPATH.BAT.
Informazioni
-----------CONVERT.BAT-----------@echo offif "%1"=="/?" goto givehelpif "%1"=="?" goto givehelpif "%1"=="-?" goto givehelpif ""=="%1" goto finditif ""=="%2" goto stacdirif not exist %2 goto Invalid_argsgoto signonREM   if Stacker is in default location, handle automatically.:stacdirif exist c:\stacker\check.exe CONVERT %1 c:\stacker\check.exeif exist c:\stacker\scheck.exe CONVERT %1 c:\stacker\scheck.exeREM   else search the path...echo Searching for your Stacker directory...call getpath check.exeif "%TARGET%"=="" call getpath scheck.exeif "%TARGET%"=="" goto cantfindstackerCONVERT %1 %TARGET%:finditREM Check to ensure we have enough environment space for a full path(80 chars)set TEST1=----------------------------------------set TEST2=----------------------------------------if not "%TEST1%"=="----------------------------------------" goto smallenvif not "%TEST2%"=="----------------------------------------" goto smallenvset TEST1=set TEST2=if "%temp%" == "" set temp=c:\ rem if temp is set to non existent dir, point to root of c.if not exist %temp%\NUL set temp=c:\ REM Confirm that CONVERT is in the working directory.if not exist .\allstack.exe goto notrootif not exist .\convert.bat goto notrootif not exist .\getpath.bat goto notrootif not exist .\dblspace.hlp goto notrootif not exist .\dblspace.exe goto notrootif not exist .\convert.txt goto notrootecho Searching for the directory that contains your MS-DOS files...call getpath dblspace.exeif "%TARGET%"=="" goto nodblspaceCONVERT %TARGET%:signonif not exist %1 goto Invalid_argscall getpath dblspace.comif "%TARGET%" == "" goto notstac31echo To convert your Stacker 3.1 drives to DoubleSpace, follow theprocedureecho in the README.TXT file, which is located in the directory thatcontainsecho your MS-DOS files.goto exitprogram:notstac31clsecho Welcome to the MS-DOS Stacker conversion program.echo.echo This program copies an updated version of the DBLSPACE.EXE fileecho to your hard disk and checks your drive(s) for errors. Thenecho it runs the updated DoubleSpace program to convert your Stackerecho drive(s) to DoubleSpace format.echo.echo NOTE: The conversion process can take several hours.echo.:readdocsecho The CONVERT.TXT file contains a detailed procedure for runningthis program.echo   **  4DOS/NDOS Users - See CONVERT.TXT for special instructions. **echo.choice /cync /n "Do you want to read the CONVERT.TXT file now[Yes,No,Cancel]?":displayfileif errorlevel 3 goto cancelexitif errorlevel 2 goto skipdocsmore < convert.txtecho.choice /cync /n "Would you like to read CONVERT.TXT again [Yes,No,Cancel]?"goto displayfile:skipdocsCLSecho.echo Updating the DBLSPACE.EXE and DBLSPACE.HLP files...attrib -r -h -s %1 > nulcall getpath dblspace.hlpif not "%target%" == ""  copy dblspace.hlp %target% > nulcopy dblspace.exe %1 > nulclsecho.echo Now running the SCHECK or CHECK programs and the SCANDISK programecho to check your drive(s) for errors.echo.echo DoubleSpace Setup will later warn you that you need to run SCHECKecho or CHECK before converting Stacker drives to DoubleSpace. Becauseecho this program is doing that now, you can ignore the warning.echo.pauseallstack %2 /F #c:if errorlevel 1 goto fixerrorsSCANDISK /ALL /CHECKONLY /NOSUMMARY /SURFACEif errorlevel 1 goto fixerrorsclsecho.echo DoubleSpace Setup will now convert your Stacker drives to DoubleSpaceecho format. This will take several hours.echo.choice /n "Do you want to convert your Stacker drive(s) now [Yes,No]?"if errorlevel 2 goto userabortclsecho.echo Press ENTER at the DoubleSpace Setup Welcome screen to beginecho converting your Stacker drives.echo.echo Loading DoubleSpace Setup...choice /ty,5 /n >nul%1goto exitprogram:fixerrorsecho.Echo   The MS-DOS Stacker conversion program cannot continueecho   because your drive(s) still contain disk errors.echo.echo   Before converting your drives, you must fix all disk errors.echo   For information about fixing disk errors, see the MS-DOS 6echo   User's Guide and your Stacker documentation. After fixingecho   the errors, run CONVERT again.echo.goto exitprogram:nodblspaceEcho   The MS-DOS Stacker conversion program cannot continueecho   because it could not find your copy of the DBLSPACE.EXE file.echo   The DBLSPACE.EXE should be located in the directory thatecho   contains your MS-DOS files.echo.echo   Add your MS-DOS directory to your search path, and then runecho   CONVERT again. (For information about changing your search path,echo   type HELP PATH at the command prompt.)goto exitprogram:Invalid_argsEcho.Echo   The MS-DOS Stacker conversion program cannot continueecho   because the CONVERT command included an invalid argument.echo.echo   To run the Stacker conversion program, type CONVERT at theecho   command prompt without any arguments, and then press ENTER.echo.goto exitprogram:cantfindstackerEcho.Echo   The MS-DOS Stacker conversion program cannot continueecho   because it cannot find the Stacker CHECK.EXE or SCHECK.EXEecho   programs.echo.echo   Add the directory that contains your Stacker files to yourecho   search path, and then run CONVERT again. Either the CHECK.EXEecho   or the SCHECK.EXE file must be in your Stacker directory whenecho   you run CONVERT. (For information about changing your search path,echo   type HELP PATH at the command prompt.)echo.goto exitprogram:smallenvset TEST1=set TEST2=Echo.Echo   The MS-DOS Stacker conversion program cannot continueEcho   because there is not enough environment space.echo.Echo   Use the SET command to examine your environment, and toecho   remove any unnecessary environment variables.echo.goto exitprogram:notrootEcho.Echo   The MS-DOS Stacker conversion program cannot continueEcho   because it cannot find one of its component files.echo.Echo   Change to the drive and directory that contains theecho   CONVERT.BAT file, and then run CONVERT again. For example,echo   if the MS-DOS Stacker conversion disk is in drive B,echo   you would type the following:echo.echo       B:echo       CONVERTecho.goto exitprogram:userabortecho.echo   The Stacker conversion process has been canceled.echo.echo   To convert your Stacker drives, run CONVERT again. Whenecho   CONVERT displays the question "Do you want to convertecho   your Stacker drive(s) now?" type Y.echo.goto exitprogram:givehelpecho    The CONVERT program converts your Stacker drives to DoubleSpaceecho    format. When the conversion process is complete, all your Stackerecho    drives will be DoubleSpace drives.echo.echo    CONVERT replaces the DBLSPACE.EXE file in your MS-DOS directoryecho    with an updated version of DBLSPACE.EXE. After CONVERT checksecho    your drive(s) for errors, it runs the updated DoubleSpace programecho    to convert all your Stacker drives.echo.echo    To convert your Stacker drives to DoubleSpace drives, typeecho    CONVERT at the command prompt without any arguments, and thenecho    press ENTER.goto exitprogram:cancelexitecho.echo    The MS-DOS Stacker conversion process has been canceled.echo    To convert your Stacker drives to DoubleSpace drives,echo    run the CONVERT program again.echo.:exitprogramset TARGET=-----------GETPATH.BAT-----------@echo offremrem GETPATH -- Searches for a (wildcarded if you like) file along the pathrem            sets the environment variable "TARGET" to a fullspecificationrem            for the fileremrem format:   GETPATH  filename.extremrem return:   %TARGET% == full specification, or ""remif "%1"=="" goto helpset TARGET=if exist zz.bat del zz.batrem if exist %1 goto localdir    --don't check for a local copy of thefile!echo @ECHO OFF                                   >zz.batecho;                                           >>zz.batecho if "%%1"=="" goto loop                     >>zz.batecho;                                           >>zz.batecho if not "%%START%%"=="TRUE" goto end        >>zz.batecho if exist %%1\%1 set TARGET=%%1\%1          >>zz.batecho if not "%%TARGET%%"=="" set START=FALSE    >>zz.batecho;                                           >>zz.batecho goto end                                   >>zz.batecho;                                           >>zz.batecho :loop                                      >>zz.batecho set START=TRUE>>zz.batecho for %%%%f in (%%PATH%%) do call zz %%%%f>>zz.batecho set START=>>zz.batecho;                                           >>zz.batecho :end                                       >>zz.batecho;                                           >>zz.batcall zz.batdel zz.batgoto end:localdirset TARGET=%1goto end:twoecho PARAM %1:helpecho format: GETPATH filename.extecho;echo examine the environment variable TARGET= after running getpath.echo;goto end:end				
6.20

Avviso: questo articolo è stato tradotto automaticamente

Proprietà

ID articolo: 107158 - Ultima revisione: 02/01/2014 00:05:29 - Revisione: 1.0

  • Microsoft MS-DOS 6.2 Standard Edition
  • kbnosurvey kbarchive kbmt KB107158 KbMtit
Feedback