Re: command prompt loop?




"pgarcia" <pgarcia@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:C89C5AD8-E7EA-489A-AA3B-A9D88AF0067D@xxxxxxxxxxxxxxxx
I need to loop the following. I have, say, 3 file in the folder that I need
printed. The code does work, however, it will only bring up only one file
and
I need to bring up all the files in the folder and pring them. Or could
you
tell me were I can find some help on DOS or command prompt. Thanks

C:\program files\adobe\reader 8.0\reader>acrord32.exe /t/n c:\print
pdfs\*.pdf \\csg-amdc2\hplj9050mfp_9 adobeps tektonix phaser 840
172.21.211.116


Try this:

for %a in (c:\print\pdfs\*.pdf) do acrord32.exe /t/n "%a"
\\csg-amdc2\hplj9050mfp_9 adobeps tektonix phaser 840 172.21.211.116

Type

for /?

at the Command Prompt to see how it works.


.



Relevant Pages

  • Re: moving multiple files from multiple subfolders up one level
    ... Does anyone know of a way to do this in dos or using Win Explorer? ... here's a sample of the directory structure. ... I assume you want to do this in a Command Prompt. ... folder names, not forward slashes as in your example. ...
    (microsoft.public.windows.file_system)
  • Re: Wildcard on Folder Name
    ... I am trying to use XCOPY to copy folder names that begin and end in a ... Is there a different syntax when running commands from a file rather than ... "Thanks for your reply, I can get it to work in dos". ... This is not DOS - it is the Command Prompt. ...
    (microsoft.public.windowsxp.general)
  • Re: moving multiple files from multiple subfolders up one level
    ... Does anyone know of a way to do this in dos or using Win Explorer? ... I assume you want to do this in a Command Prompt. ... folder names, not forward slashes as in your example. ... Omit the word "echo" in the second line to activate ...
    (microsoft.public.windows.file_system)
  • Re: moving multiple files from multiple subfolders up one level
    ... subfolders with probably 200 files in each and I don't want to do this ... Does anyone know of a way to do this in dos or using Win Explorer? ... I assume you want to do this in a Command Prompt. ... folder names, not forward slashes as in your example. ...
    (microsoft.public.windows.file_system)
  • Re: Cannot remove folder: The file or directory is corrupted and unrea[dable?]
    ... folder "folder name": The file or directory is corrupted and unreadable. ... Rather than operating in a Command Prompt (which you call ... "DOS") environment, use the appropriate WinXP GUIs: ... device and repartition or reformat it. ...
    (microsoft.public.windowsxp.general)