Batch Programming Not Exist Statement

Pubblicato il: 16 dicembre 2018
sul canale di: Ace1000ks1975
231
1

Website link to more batch script examples
https://he-1000-1975.com/video-direct...

Example 1:

@echo off
:start

if not exist "counter1.txt" (
goto Filenotexist
) else (
goto FileExist
)

:Filenotexist
echo file does not exist.
pause
exit

:FileExist
echo file does exist.
pause
exit

Example 2:

@echo off
:start
echo Please enter a folder to see if it exists in your computer.
set /p gh=

if not exist "%gh%" (
goto CreateChartFolder
) else (
goto CreateFolderExists
)

:CreateChartFolder
mkdir "%gh%"
echo Chart folder was created.
echo Press Q to exit program or any other key to continue.
set /p hg=
if %hg% == q (
goto quit
) else (
goto start
)

:CreateFolderExists
echo the folder Chart Folder already exists.
echo Press Q to exist the program or any other key to continue.
set /p lk=
if %lk% == q (
goto quit
) else (
goto start
)

:quit
exit


In questa pagina del sito puoi guardare il video online Batch Programming Not Exist Statement della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Ace1000ks1975 16 dicembre 2018, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 231 volte e gli è piaciuto 1 spettatori. Buona visione!