B
Barry
No help needed, just uploading info after my longish search so other
can make use of this
I needed a way to batch print a load of word docs in a folder, using a
batch file.
Just create a batch file and load the code into it.
Dobule click or run the file and all docs will be sent to printer and
closed in sequence.
(You do of course need word installed to do this)
Here's the code:
==========================
cls
rem create batch file that runs word
echo "c:\Program Files\Microsoft Office\Office10\winword.exe" %%1 /a
/mfileprintdefault /mFileExit > wordprint.bat
echo move %%1 printed\%%1 >> wordprint.bat
rem create a directory listing of word docs
dir /b *.doc > dirlist.txt
rem print and move the docs using created batch file
for /F %%a in (dirlist.txt) do wordprint.bat %%a
rem cleanup
del dirlist.txt
del wordprint.bat
echo
echo finished !!
==========================
can make use of this
I needed a way to batch print a load of word docs in a folder, using a
batch file.
Just create a batch file and load the code into it.
Dobule click or run the file and all docs will be sent to printer and
closed in sequence.
(You do of course need word installed to do this)
Here's the code:
==========================
cls
rem create batch file that runs word
echo "c:\Program Files\Microsoft Office\Office10\winword.exe" %%1 /a
/mfileprintdefault /mFileExit > wordprint.bat
echo move %%1 printed\%%1 >> wordprint.bat
rem create a directory listing of word docs
dir /b *.doc > dirlist.txt
rem print and move the docs using created batch file
for /F %%a in (dirlist.txt) do wordprint.bat %%a
rem cleanup
del dirlist.txt
del wordprint.bat
echo
echo finished !!
==========================