I was planning on using a command like this
FOR /R %f in (".") DO xcopt test.txt %f
to copy a file into all subdirectories of a folder.
This works fine when I write the file into the command prompt but it doesn't work when I put it into a batch file and run the batch file.
Any ideas as to why this wouldn't run from a batch file?