Batch Files / Reading Tables

I am trying to write a small script that will help my office automate uploading zips and self extractors to an ftp site. They should create some zips / se and call them different things, etc.

My idea is that they have a small table into which they can enter (i.e. the name that they want the file to be called, the download location, where they want to extract it, etc.), and then my program will handle this efficiently (so when they want to load this "data string", they simply select through the GUI and run the script).

I am new to batch files and programming in general. Just wondering if anyone has a hint that a batch file is being read in data from a table somewhere?

+4
source share
2 answers

Will this help?

With Data.txt Data File

One,Two,Three A,B,C 

Cmd ReadData.cmd File

 @echo off for /f "tokens=1-3 delims=," %%A in (data.txt) do call :EachLine %%A %%B %%C goto :eof :EachLine @echo First is %1 Second is %2 Third is %3 goto :eof 

Gives a conclusion

 First is One Second is Two Third is Three First is A Second is B Third is C 
0
source

if you want to make a GUI, you can try HTA programming . you can create tables, etc.

+1
source

Source: https://habr.com/ru/post/1299215/


All Articles