Solved

Processing .DOC and respective .TXML file

Posted on 2010-11-08
2
509 Views
Last Modified: 2012-05-10
Hello Experts,

I would like to process the .DOC and respective .TXML file by calling another CMD batch script using VB Script.

Folder contains both .DOC and .TXML files...script should process each .DOC file by using an command calling Merging "DOC file" "TXML file"

for example: Merge "test1.doc" "test1.doc.txml"

Can you please provide any sample script or references for this.

Thanks,
Shailesh
0
Comment
Question by:ShaileshShinde
2 Comments
 
LVL 53

Accepted Solution

by:
Bill Prew earned 500 total points
ID: 34088369
Here's a sample BAT script to do the merging part.

@echo off
for %%A in ("*.doc") do merge "%%A" "%%A.txml"

place that in the folder with the files and run it, or launch it from a VBS script if you want to run it that way.

~bp
0
 
LVL 1

Author Closing Comment

by:ShaileshShinde
ID: 34091087
Thanks!
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I met Paul Devereux (@pdevereux) today when I responded to his tweet asking “Anybody know how to automate adding files from disk to a folder in #outlook  ?”.  I replied back and told Paul that using automation, in this case scripting, to add files t…
This is pretty cool.  The purpose of this VB Script is to help you document where JAR (Java ARchive) files and specifically java class files are located so that you can address issues seen with a client or that you can speak intelligently with a dev…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

786 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