I'm working on .bat files to run properly on a WinXP os. I can get the following lines of code to work properly in the command window, but when contained in a three line ".bat" file, the command window opens for a split second and closes and nothing else happens.
for /f "tokens=*" %X in (file.txt) do (cd %X & cksum * >> C:\dir1\dir2\output.txt)
"file.txt" contains a number of directory structures:
...and so on
So I am essentially trying to make directory structures variable and then perform a "cksum" function on the files in that directory.
Any suggestions/advice would be most appreciated.