Link to home
Start Free TrialLog in
Avatar of ddipro
ddipro

asked on

Tar File

Hi all

   How to run .tar file in vc++..
Avatar of F. Dominicus
F. Dominicus
Flag of Germany image

either use the proper library for accessing or run  a pipe in which you run a tar command line.

Regards
Friedrich
Avatar of ddipro
ddipro

ASKER

can you give me example how i run?Becouse i am new...
ASKER CERTIFIED SOLUTION
Avatar of F. Dominicus
F. Dominicus
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
What do you mean by run ? Do you simply want to start an external application (like WinZIP) that will open the file, and then let the user worry about extracting etc. ? Or do you want to actually have your code extract the archive ?
Ok I spend a bit too much time on it. It seems not to work on windows as advertised. One has to port it again to windows, that's a pitty because on Unixes it seems to just "run"...

sorry, for not checking before

Regards
Friedrich
Avatar of ddipro

ASKER

External application
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ddipro

ASKER

Can you give me more detail...
That was full code ... How much more detail do you want ?

Do you understand what the code does ?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ddipro

ASKER

hi Infinity08

   no i don't know...
Take a look at the reference link I posted for CreateProcess. It's a Windows system call to start a process. I used it to start the Winzip application with a given tar file. The first few lines are just setting up the parameters ("winzip" is the path to the Winzip executable and "tarfile" is the TAR file). The last line is the actual CreateProcess call. Just give it a try (modify the winzip and tarfile strings !!).
Can you explain why you want to delete this ? If you need further help with this question, please tell us what you need help with, and we'll be glad to assist you further.