|
Answer» hello, how to add comma in the begining of each row by using batch file? thanksWhat exactly do you mean?
Where do you want the comma to be?o, i have solved this problem~~thanks and i would like to ask another QUESTION:
If I want to import 10 files in a folder, how to write a batch script in order to import those 10 files? I mean how to read the number of files in that folder and write a loop for doing that?
thanks!!try this for /f "tokens=1" %%i in ('dir ^| find " File(s)"') do echo %%io,i m sorry i can't test it?why it will print the count of files in a directory u are in i have made your command into a BAT file, a.bat. then i RUN it. It displays the command only but not the variable.C:\**\Desktop\ttt>a.bat
C:\**\Desktop\ttt>for /F "tokens=1" %i in ('dir | find " File(s)"') do echo %i
C:\**\Desktop\ttt>echo 4 4
can u make a DIR command on ur prompt and show me the result it prints
|