i have a folder folder1 contain 3 files file1 , file2 and file3 ... i need command line to do the following task ... store the name of file in variable ... because i want to write dynamic batch
| ||||
|
feedback
|
in a batch file will echo the filename of each file in the folder. To do the same thing at the command line, use only one percent sign for the variable. You can replace | |||
|
feedback
|
|
If you want to upgrade from batch to powershell:
| |||
|
feedback
|
|
Assuming this is in a batch file, you could do it in a for loop like this:
| |||
|
feedback
|