cancel
Showing results for 
Search instead for 
Did you mean: 

How to Extract .CAR/SAR file in windows?

Former Member
0 Kudos

HI guys,

I have always worked in unix level so I know how to extract in unix but this is my first time extracting .car/sar file in windows. I have downloaded files and SAPCAR utility. How Do I extract now?

Thanks,

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Just exit to the command prompt and execute the same commands (i.e. SAPCAR.EXE -xfv SAPEXAMPLE_00004.CAR).

J. Haynes

Former Member
0 Kudos

You need to login with sidadm or no need.

Answers (5)

Answers (5)

0 Kudos

Hi

Could anyone guide with the steps to extract the SAR file using SAP CAR utility in Windows OS. The above mentioned steps did not work out in extracting the SAR file.

Thanks

Former Member
0 Kudos

SAPKAR.CAR -xvf k*.car

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

SAPCAR -xvf K*.sar

This is enough.

It is advisable to use SAPSID(adm) for logging to the application server .

<b>Please Reward Points if find it useful.

Thanks,

Prashant.</b>

Former Member
0 Kudos

HI,

It is required to login with <sid>adm in unix. In windows, I did not log in with any user and I was able to extract it.

Thanks,

Former Member
0 Kudos

The only reason to login with sidadm is so the sapcar executable is in the path. But this can still be run as root if needed.

Former Member
0 Kudos

HI,

Can you suggest how you got executable file from .SAR using SAPCAR command in windows?

when using below command

sapcar -xvf <filename.SAR> in command prompt after going to required path

I get below

off cd <pathname> sapcar -xvf -xvf pause

but files are not extracted.

Any help will be greatly appreciated.

Regards,

Neha

Former Member
0 Kudos

hi,

options known to the old CAR application.

using absolute pathnames:

If you create an archive with absolute pathnames the files will be

extracted with exactly these pathnames! SAPCAR does not cut the first

slash like the UNIX tool tar.

specifying a list of archives for extracting/verifying/listing:

Enclose the list with double quotes.

If there is no whitespace in any archive path the list must be separated by

space or comma; e.g.

SAPCAR -xvf "ARCHIVE1.SAR ARCHIVE2.SAR"

If at least one archive path contains whitespace the list must be comma

separated; e.g.

SAPCAR -xvf "ARCHIVE WITH BLANK.SAR, ARCHIVE.SAR, ARCHIVE2.SAR"

specifying a single archive path containing whitespace:

Enclose the archive name with double quotes.

creating: You must not append a comma except it is part of the path; e.g.

SAPCAR -cvf "ARCHIVE WITH BLANK.SAR" *

extracting/verifying/listing: You must append a comma; e.g.

SAPCAR -xvf "ARCHIVE WITH BLANK.SAR,"

In order to extract/verify/list more than one archive using wildcards you

have to quote the file name argument in order to bypass wildcard evaluation

by the shell. So a call like

SAPCAR -xvf K*.sar

will result in only one archive beeing extracted,

whereas

SAPCAR -xvf "K*.sar"

will have SAPCAR extracting all archives in the current directory that

match the pattern "K*.sar".

using A, T and X option:

All entries in the specified files are treated relative to the current

working directory unless the entry is an absolute pathname (in this case

the relevant file will be archived with an absolute pathname).

If you want to specify a directory path in these files use the slash ("/")

as path delimiter.

regards

ajai