A Windows 98 & ME forum. Win98banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Win98banter forum » Windows 98 » General
Site Map Home Authors List Search Today's Posts Mark Forums Read Web Partners

running many files through the same command



 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old June 22nd 04, 03:13 PM
Ivan Bútora
external usenet poster
 
Posts: n/a
Default running many files through the same command

Hi everyone,

not sure if the subject of this thread is a good way to describe what I =
want to do, but here it is. Basically I wish to convert several (many) =
files from WordPerfect format to T602 format. For this, I have a small =
utility "pre602.exe" which functions in this way:

PRE602.EXE [parameters] inputfile outputfile

In my case, let's say I wish to convert a file called "text.wp", I would =
do:
pre602 /d:5 text.wp text.602


Question 1
Imagine I have twenty files I want to convert, and I don't want to do =
each one individually. Is there any way to do this using a batch file? =
If I put all those files in one folder, is there any way how to generate =
a list of those files, and then run this list through the pre602.exe =
command automatically?


Question 2
I want to define a custom action for .wp files which would do the =
conversion to .602. I was able to do something like this:

pre602.exe /d:5 %1 new.602
However, I am not able to figure out a way to refer to the part of the =
filename before the file extension, and thus I had to make the output =
file something fixed, which I subsequently have to rename. I know "%1" =
refers to the file that the action is taken on. If the file is, say, =
"xxx.wp", is there any way to refer just to "xxx"?

Thanks for your input.

Ivan
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Recovering files DAJ General 3 June 21st 04 05:39 AM
C Windows profiles user application data LuckyStrike General 24 June 18th 04 12:13 AM
Lost access to Windows Help Files overzealous General 2 June 14th 04 10:08 PM
Safely delete .exe files in "TEMP" folder?? CNJ General 2 June 14th 04 06:16 AM
Question about C:\Windows\Temp files JR Berry General 6 June 7th 04 09:32 PM


All times are GMT +1. The time now is 01:56 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Win98banter.
The comments are property of their posters.