Computing.Net > Forums > Disk Operating System > Simple batch help

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Simple batch help

Reply to Message Icon

Name: aliton
Date: October 3, 2009 at 10:24:50 Pacific
OS: Windows XP
Subcategory: General
Tags: batch, Directory
Comment:

I have a cmd line ( extract.exe ) that decompres a specific encrypted data files ( .prs ).
the parameters are like this:
extract.exe -e input output

( Example:
extract.exe -e 0001.prs 0001.prs.dec
This will decompress 0001.prs into a new file 0001.prs.dec )

Now i have a directory with a LOT of these .prs files, and i would like to write a simple batch to decompress them all rapidly using the extract.exe

How can I do?

Thanks! :D



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: October 3, 2009 at 11:38:37 Pacific
Reply:

0001.prs.dec is *NOT* a DOS file name.

wrong forum

But as long as you're here, in XP:

---------------------------------
@echo off & setLocal EnableDELAYedExpansion

for /f "tokens=* delims= " %%a in ('dir/b *.prs') do (
extract.exe -e %%a %%a.dec
)


=====================================
Helping others achieve escape felicity

M2


1

Response Number 2
Name: aliton
Date: October 3, 2009 at 11:56:10 Pacific
Reply:

sorry for the wrong forum, and thx for the perfect response... it works great! ^_^


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More






Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: Simple batch help

Simple Batch File www.computing.net/answers/dos/simple-batch-file/5910.html

batch files hurt my head...help www.computing.net/answers/dos/batch-files-hurt-my-headhelp/7005.html

Need help with a Dos batch file www.computing.net/answers/dos/need-help-with-a-dos-batch-file/13006.html