I just wrote a batch file which will open a PDF document.
start "path to my pdf file reader" %1
Now,I made all my PDF files open with openpdf.bat as the default application.When I try to open any PDF file with this batch file,unlimited numbers of cmd windows open and close indefinitly.
I need help from you all on this topic if any one does Batch programming or has any idea about this problem.
Is "path to my pdf file reader" an executable (.exe file) or a .bat file or something else? It would appear that your "pdf file reader" execs a command to Windows to open the .pdf file, which causes Windows to run your script, which calls the "pdf file reader" which execs a command Windows to open the .pdf file, which causes (you get the idea). If this is happening, then the "pdf file reader" is not the real reader but rather a launcher of the reader.
Thanks for the reply.
The "path to PDF reader" is teh path to my Foxit PDF reader and is an .exe.But I ahve noe figured a way out.
The syntax to launch the command is :
start "" "path to the pdf reader(.exe)" "file name"