• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

Batch File Conversion

DarkArchon

n00b
Joined
Feb 12, 2003
Messages
34
Here is my request, if any knowledgeable programmers could help me with this I would greatly appreciate it.

I need a DOS Batch File, not a windows program, to do the following:

1. Grab .doc files from a web server
2. Grab specific lines from .doc and convert or format the grabbed info into another type of file with a specific format.
i.e. download a word document with 5 lines of text, grab the 2nd and 4th line of text, then output that into a .stp file with those lines 2 spaces down on the document.

3. Upload the converted document to an ftp without having to enter a username and password.

A windows based program is possible, but only as a last resort.

I have a sample program that I have been working on if anyone would like to see the code I have so far please PM or email me.

Thanks in advance.
 
You might want to look into something like Perl. Batch files are kind of brain-dead - every step along the way is going to require a program to do the work. You might be able to get wget to handle the fetching of the doc files but I don't know of any simple command-line tools that let you work with MS Word's binary DOC format. If you were using Perl/Python/etc, OTOH, you'd be able to do all this stuff without much trouble.
 
What other restrictions are there? Can we assume that there are things already on the system like Microsoft Word or a tool to pull down data from the web via the command line (like a wget or curl)? You say you don't want a program that does this, which is fine, but all your requirements will need other programs available for use.

What do you have now? Can you paste the batch file you currently have?

I would agree that a scripting language would make this problem slightly easier. If you want to minimize external dependencies, like having to install support for a scripting language, there are ways to provide an executable with a scripting language, like python's py2exe.
 
Back
Top