View Single Post
  #5  
Old June 22nd 04, 09:13 PM
Ivan Bútora
external usenet poster
 
Posts: n/a
Default running many files through the same command

Thanks, Gary. I might contact you privately if I do not manage to =
accomplish what I wish with DOS/Windows commands.


"Gary S. Terhune" wrote in message =
...
Obviously, you wish to do a lot more than simply convert 20 or so =

files in
this manner, Ivan. Would be easier to simply do it one by one if that =

were
the case.
=20
I'm not familiar enough with batch files to advise on their use, but I =

would
use Windows Scripting for this, Ivan. Ping me privately and I'll be =

glad to
help. It's a bit much for this group.
=20
--=20
Gary S. Terhune
MS MVP for Win9x
=20
"Ivan B=FAtora" wrote in message
...
Hi everyone,
=20
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:
=20
PRE602.EXE [parameters] inputfile outputfile
=20
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
=20
=20
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?
=20
=20
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:
=20
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"?
=20
Thanks for your input.
=20
Ivan