Is possible to compress/archive a directory with all of its sub-directories and files in a single file from cmd.exe ? I know there are a lot of utilities available but I need to perform the operation only with the windows default utilities . I'm running windows server 2003 .
相关问题
- iOS (objective-c) compression_decode_buffer() retu
- Does specifying the encoding in javac yield the sa
- String Manipulation with case sensitivity
- Is there a public implemention of LZSS compression
- Execute command with Excel macro and close cmd win
相关文章
- 在vscode如何用code runner打开独立的控制台窗口,以及设置好调试模式时窗口的编码?
- Can I release an app without the device?
- c# saving very large bitmaps as jpegs (or any othe
- Archive option greyed out in xcode 4.5.2
- Command line escaping single quote for PowerShell
- TAR encode/decode library for iPhone (ideally coco
- Set variable in “if” block
- How can I get a password containing a caret (^) pa
Although the old makecab doesn't store a real directory structure, you can command the output directories for each file if you really need it. The procedure is more cumbersome than using a modern utility, but can be done.
For doing this you should create a .ddf file.
The manual for the old makecab has been removed from the web by MS. I found a copy here.
In page 33 of the makecab manual you will find:
DestinationDir=path
Path prefix to store in cabinet file for each file in the cabinet.
Default: .Set DestinationDir= ; Default is no path prefix
path
is concatenated with a path separator (“\”) and the target file name on
File Copy Commands to produce the file name that is stored in cabinet file.
EXTRACT.EXE will use this file name as the default name when the file is extracted.
HTH!
There's really very little you can do as there's no command-line compression as part of Windows as standard.
The closest thing I can think of is to use the backup program NTBackup.
If there's any way you can install a utility I'd strongly recommend 7zip which I've had good experience of scripting with.