# Difference between revisions of "VPK"

VPK ("Valve Pak") files are uncompressed archives used to package content (never code). They are the successors to GCFs, and when passed to the addoninstaller tool are also used to distribute add-ons like custom campaigns.

## VPK tool

VPKs can be created with the command line tool vpk, found at <game>\bin\. It is currently available in Left 4 Dead branch games only.

When you create a VPK source files like TGA, QC and VMF are discarded, as are executables.

### Commands

<dirname>
Creates a new VPK in the directory given, containing the contents of that directory. Must be an existing location. Alternatively, drag a folder onto the tool in Explorer to trigger this command.
Bug: If the location is outside the game's folder, the file will just be called ".vpk".
x <vpkfile> <filename1> <filename2> ...
Extract file(s).
a <vpkfile> <filename1> <filename2> ...
a <vpkfile> @<filename>
k vpkfile <filename>
Bug: They will appear inside the VPK with their full path (C:\etc\) intact - is there a way to avoid this?
l <vpkfile>
L <vpkfile>
-v
-M