ho un programmino utilizzabile solo da riga di comando...
...la paranoia è che la prima parte del comando è sempre quella, cambia l'ultima...
avete idea di come posso automatizzare l'immissione della prima parte?
magari con un file *.cmd?
grazie
@ECHO OFF
CHOICE /C:CDE /N Inserisci la lettera del hard disk che vuoi controllare
IF ERRORLEVEL 3 GOTO 13
IF ERRORLEVEL 2 GOTO 12
IF ERRORLEVEL 1 GOTO 11
:13
scan e: /nomem /clean /report %RAMD%:\virus.txt /rpterr
goto exit
:12
scan d: /nomem /clean /report %RAMD%:\virus.txt /rpterr
goto exit
:11
scan c: /nomem /clean /report %RAMD%:\virus.txt /rpterr
goto exit
:exit
edit %RAMD%:\virus.txt
echo.
echo With the following options:
if /I "%_r%" == "y" goto _pfix
if /I "%_f%" == "y" goto _pfix
goto _nofix
:_pfix
echo - Fix errors on the disk
:_nofix
if /I "%_r%" == "y" echo - Locate bad sectors and recover readable information (slow!)
echo ----------------------------------------------------------------
echo.
echo Start check disk? (Yes/No)...
:_startinp
set /p _s=Enter "y" or "n":
if /I "%_s%" == "" goto _startinp
if /I "%_s%" == "y" goto _run
if /I "%_s%" == "n" goto _abort
goto _startinp
:_run
if /I "%_f%" == "y" set _param=/f
if /I "%_r%" == "y" set _param=/r
set _param=%_drive% %_param%
echo Running: chkdsk.exe %_param%
chkdsk.exe %_param%
echo.
echo CHKDSK.CMD: Check disk done...
goto _end
:_abort
echo.
echo CHKDSK.CMD: Aborted...
:_end
pause
endlocal
set /p _param=
comando userID password %_param%
Visitano il forum: Nessuno e 3 ospiti
megalab.it: testata telematica quotidiana registrata al Tribunale di Cosenza n. 22/09 del 13.08.2009, editore Master New Media S.r.l.; © Copyright 2008 Master New Media S.r.l. a socio unico - P.I. 02947530784. GRUPPO EDIZIONI MASTER Spa Tutti i diritti sono riservati. Per la pubblicità: Master Advertising