Blat 2.7.5 cannot insert text

Posted on 2011-10-03
Last Modified: 2012-05-12
I'm running Blat on my computer to test and then roll it out to some users in our network.

First off, I have a simple batch file that zipped several files (for backup purpose) and then send an e-mail notification to several people saying the backup was completed.  This is a sample of the blat command line.
1. I first install Blat.  c:\blat -install <IP addr of internal SMTP server> <e-mail addr of sender>
The install went through no error.
2. Then inside the batch file, I have blat run. C:\blat\blat textfile.txt -t ",," -s "Backup completed"

When the batch file ran, I received the error msg: "Unknown error code 2 when trying to open textfile.txt".  I didn't receive any e-mail notificaitons from blat.

What is wrong with the syntax?  Textfile.txt is in the same directory as Blat.exe (C:\blat)
Question by:McKuser

    Accepted Solution

    Found the problem with the batch file.  On #2 above, the sentence should say "c:\blat\blat c:\blat\textfile.txt -t......".  I had to exclusively indicate where the text file was located even though the file was in the same directory as Blat (c:\blat).
    It is working now.

    Author Closing Comment

    Found the solution myself.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Suggested Solutions

    One of the biggest challenges facing freelancers is balancing multiple projects and deadlines. Organizational skills and time management are key to keeping up with projects and staying on track. Luckily, we’ve curated seven tools to help you focus o…
    This story has been written with permission from the scammed victim, a valued client of mine – identity protected by request.
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now