Hello,
I would like to run a print command on the files specified in *.txt file.
Command: "X:\path\application.exe /p"
File list in *txt file:
X:\folder1\folder2\document1.xcmd
X:\folder3\document2.xcmd
K:\folder7\document3.xcmd
ect...
I found something similar: for %%g in (*.xmcd) do "C:\path\mathcad.exe /p %%g
Thanks for the help in advance!
I would like to run a print command on specified files
Moderator: DosItHelp
Re: I would like to run a print command on specified files
First you have to find out if the application that opens these file types has a command line switch to print the files. Since you are the only one right now who knows what the program is you are the only one who is going to be able to figure that out.
Re: I would like to run a print command on specified files
Squashman has a good point - you have removed any info that could help us to see what you are doing.
But to do *something* with a list in a file:
@echo off
for /f "delims=" %%a in ('type "file.txt" ') do "something" /p "%%a"
Replace "something" /p with your command and switches.
But to do *something* with a list in a file:
@echo off
for /f "delims=" %%a in ('type "file.txt" ') do "something" /p "%%a"
Replace "something" /p with your command and switches.