Avatar billede carnudo Nybegynder
28. december 2001 - 11:04 Der er 2 kommentarer og
1 løsning

Batch Script

Lets say I have 100 zipped files together with a utility to unzip them. This utility works only in command line and it is not winzip or anything you know. Lets call the comprimed files for *.poh and the extraction utility called unpoh.exe

So the 100 *.poh files are together in a folder with the unpoh.exe file.

What I would like to do is via command line have a batch file which would take the first *.poh file (regardless of name) and put the extracted content in another folder named after the file name.

Any help?
Avatar billede zred Nybegynder
28. december 2001 - 11:08 #1
unpoh.exe - then \"Unzip\" them into it..

... just start the program
Avatar billede NanoQ Nybegynder
28. december 2001 - 11:15 #2
It is not possible to do it in batch.

You need either a \"unpoh.exe\" that works with wildcards or a script (vb, java or other) that feeds unpoh.exe with a range of filenames in some kind of loop.

Btw... 500 points are way too many... 60 is default for a difficult question...

NanoQ
Avatar billede carnudo Nybegynder
28. december 2001 - 11:22 #3
It should be possible with a FOR statement I think,
xxxx.poh  (100 files all in same dir.)
unpoh.exe  (utility to extract)

I dont know, but I think it is possible to do a batch script that says make a directory with the xxxx.poh name (not extession) and then put the xxxxx.poh extraction in there. Then go to file two and do the same.

The command to extract is nothing but:
unpoh -u xxxxx.poh

This has to be done in Batch Script.
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Kurser inden for grundlæggende programmering

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester