Code:
@echo off
echo .---------------------------------------------------------------------.
echo . This Batch File is created by CyberHacker .
echo . Istructions: .
echo . 1.The prompt will be at "C:\Temp>" because her is alowed as to work .
echo . .
echo . 2.That means with thes program you cant create a folder in no one .
echo . different folder just in subdirectories of Temp. .
echo . .
echo . 3.I have create this batch file just to training for my exam in .
echo . Operating Systems. .
echo . .
echo . .
echo ._____________________________________________________________________.
echo .
pause
echo .
echo .
echo This program will create a directory with the name you chose.
echo If you chose Yes he will create the directory
echo If you chose No he wont create the directory
goto check
:check
echo Whould you create any folder
set pass=yes
set pass1=no
set/p "ent=>"
goto check1
:check1
if %ent%==%pass% goto folder
if %ent%==%pass1% goto exit
if not %ent%==%pass% goto inv
if not %ent%==%pass1% goto inv
:folder
echo Enter the destination were you would create the folder?
echo The prompt every time will be at "C:\Temp" just enter the subdirectory.
echo And the prompt will go there you have chose.
set/p "cc1=>"
cd %cc1%
echo You are in %cc1% directory.
echo Chose the name of your folder who you whant to create?
set/p "cc=>"
md %cc%
goto end
:inv
Echo You have enter invalid parameters enter Yes or No
set/p "ent=>"
goto check1
:exit
echo The folder is not created
goto cc
:end
echo You create succesfuly folder %cc%
pause
cls
:cc
echo This batch file is created by CyberHacker
@echo off
echo .---------------------------------------------------------------------.
echo . This Batch File is created by CyberHacker .
echo . Istructions: .
echo . 1.The prompt will be at "C:\Temp>" because her is alowed as to work .
echo . .
echo . 2.That means with thes program you cant create a folder in no one .
echo . different folder just in subdirectories of Temp. .
echo . .
echo . 3.I have create this batch file just to training for my exam in .
echo . Operating Systems. .
echo . .
echo . .
echo ._____________________________________________________________________.
echo .
pause
echo .
echo .
echo This program will create a directory with the name you chose.
echo If you chose Yes he will create the directory
echo If you chose No he wont create the directory
goto check
:check
echo Whould you create any folder
set pass=yes
set pass1=no
set/p "ent=>"
goto check1
:check1
if %ent%==%pass% goto folder
if %ent%==%pass1% goto exit
if not %ent%==%pass% goto inv
if not %ent%==%pass1% goto inv
:folder
echo Enter the destination were you would create the folder?
echo The prompt every time will be at "C:\Temp" just enter the subdirectory.
echo And the prompt will go there you have chose.
set/p "cc1=>"
cd %cc1%
echo You are in %cc1% directory.
echo Chose the name of your folder who you whant to create?
set/p "cc=>"
md %cc%
goto end
:inv
Echo You have enter invalid parameters enter Yes or No
set/p "ent=>"
goto check1
:exit
echo The folder is not created
goto cc
:end
echo You create succesfuly folder %cc%
pause
cls
:cc
echo This batch file is created by CyberHacker
pitanja su kako su komande u bash za
set
set/p
if
if not
%..%
==
kako da to ih pisujem u bash scripti i ako vam nije tesko kreratemi vi jedan bash script slican.