Batch Script Arrays | Batch Script Tutorial

preview_player
Показать описание
In this batch script tutorial we will learn the batch script arrays designing. We will see using the batch script arrays how to implement a user story.

A batch file is a script file that stores commands to be executed in a serial order. It helps automate routine tasks! A scripting language is a programming language that is created to interpret and execute one command at a time. Wish to be a Scripter you have visted the right place.

Batch File Playlist:

Important Links:

Thanks for watching, please do subscribe.

Link to UiPath Beginners Playlist:

Link to UiPath Excel and DataTable Playlist:

Link to UiPath Key Technique Playlist:

Link to UiPath Email Automation Playlist:

Link to UiPath PDF Automation Playlist:

Link to UiPath ReFramework Playlist:

Link to UiPath Classic and Modern Excel Activities Playlist:

Link to UiPath Regular Expression Playlist:

Link to UiPath Orchestrator Playlist:

Link to Advance UiPath Orchestrator Playlist:

Link to UiPath VB dot Net PlayList:

Link to UiPath Use Case Playlist:

Link to UiPath Selectors Playlist:

Link to UiPath Enhanced Selectors Playlist:

Link to UiPath Computer Vision Playlist:

Link to UiPath Interview Series Playlist:

Link to UiPath Document Undestanding Playlist:

Link to UiPath Action Center Playlist:

Link to UiPath Error and Fix Playlist:

Link to UiPath Activities Playlist:

Link to UiPath Certification Playlist:

Link to UiPath Background Automation Playlist:

Link to UiPath Logs Playlist:

Link to UiPath GitHub Integration Playlist:

Link to UiPath API Integration Playlist:

Link to Python Playlist:

#batchfile #batchscripting #batchfilecommands
Рекомендации по теме
Комментарии
Автор

Completed. Here is the completed assignment!
@echo off
title Batch Script Array Example
Color A
setlocal enabledelayedexpansion
set Name=Rakesh Mohan Ravi
set /a rank=3
for %%b in (%Name%) do (
cls

echo Congratulations to the !rank! place winner: %%b!
set /a rank-=1
timeout /t 5 /nobreak
)

Bob-zzdl
Автор

Technically speaking it's not a list nor an array. It's a variable holding a string and you loop through the names. But this is a good video nonetheless.
Completed.

maxautism
Автор

Here is what I came up with using something I found on the internet. I tried using your method but was not successfully in combining two variables. I will keep trying.

@echo off

set obj[0].Name=Rajesh
set obj[0].ID=First
set obj[1].Name=John
set obj[1].ID=Second
set obj[2].Name=Kanta
set obj[2].ID=Third

FOR /L %%i IN (0 1 2) DO (
call echo %%obj[%%i].Name%% is the %%obj[%%i].ID%% winner
timeout /t 5 /nobreak
)
pause

marthamisquitta
Автор

Still trying to complete the assignment

marthamisquitta
Автор

@echo off
Title Here we learn the batch array script
set Winners_list=sourav chirosree raima
set /a set_rank=0

setlocal enabledelayedexpansion

for %%n in (%Winners_list%) do (
set /a set_rank+=1
echo The !set_rank! position got : %%n
timeout /t 3 /nobreak
)

pause cheak sir and plz reply

Souravsarkar-px
Автор

This is the assignment below

@echo off
color 0A
title Prize Ceremony

setlocal enabledelayedexpansion

set winners=Praveen Kanchan Diyansh Reyansh

set /a rank=1

for %%i in (%winners%) do (
cls
echo Congratulations to the !rank! place winner: %%i!
set /a rank+=1
timeout /t 5 /nobreak
)

pause

PraveenSingh-clor
welcome to shbcf.ru