Advice regarding a strange MS-DOS Batch File

  • Thread starter Thread starter JD
  • Start date Start date
J

JD

Recently the HR Block tax program installed a pdf printer. It works fine and
created pdfs of my returns. Here's my question. The install left a batch
file in C/ Program Files. Its title is "temp995." I've never seen such a
file in that folder before and wonder if it's just an "orphan." Could it be
deleted--or perhaps "run"? Here's the text of the file:

:again
del "C:\Program Files\pdf995\res\utilities\thinsetup.exe"
if exist C:\Program Files\pdf995\res\utilities\thinsetup.exe goto again
rmdir /Q "C:\Program Files\pdf995\res\utilities"
rmdir /Q "C:\Program Files\pdf995\res"
rmdir /Q "C:\Program Files\pdf995"
rmdir /Q C:\Program Files\pdf995
del "C:\Program Files\temp995.bat"

If I read the last line correctly, the file in question should have been
deleted after the install was completed.
Any advice will be appreciated.
 
From: "JD" <[email protected]>

| Recently the HR Block tax program installed a pdf printer. It works fine and
| created pdfs of my returns. Here's my question. The install left a batch
| file in C/ Program Files. Its title is "temp995." I've never seen such a
| file in that folder before and wonder if it's just an "orphan." Could it be
| deleted--or perhaps "run"? Here's the text of the file:

::again
| del "C:\Program Files\pdf995\res\utilities\thinsetup.exe"
| if exist C:\Program Files\pdf995\res\utilities\thinsetup.exe goto again
| rmdir /Q "C:\Program Files\pdf995\res\utilities"
| rmdir /Q "C:\Program Files\pdf995\res"
| rmdir /Q "C:\Program Files\pdf995"
| rmdir /Q C:\Program Files\pdf995
| del "C:\Program Files\temp995.bat"

| If I read the last line correctly, the file in question should have been
| deleted after the install was completed.
| Any advice will be appreciated.



It could not delete itself so yes, it was orphaned.

BTW: A better way to create a PDF, PDFCreator on SourceForge.
http://sourceforge.net/projects/pdfcreator/
 
Thanks for the response. I take it the file in question can be safely
deleted.
I appreciate the suggestion regarding PDFCreator, but I am satisfied with
the 995 software. It creates quality pdfs from Word docs. What would make
PDFcreator a "better way"?
 
JD said:
The install left a batch
file in C/ Program Files. Its title is "temp995."

:again
...
del "C:\Program Files\temp995.bat"

Poor programming. A running batch file cannot delete itself.
 
From: "JD" <[email protected]>

| Thanks for the response. I take it the file in question can be safely
| deleted.
| I appreciate the suggestion regarding PDFCreator, but I am satisfied with
| the 995 software. It creates quality pdfs from Word docs. What would make
| PDFcreator a "better way"?

Well it is 100% free, based upon Open Source code, based upon GhostScript and can have
Distiller-like properties in merging multiple documents into one PDF.
 
Back
Top