0

In the current directory I have a file named "file.txt".

How to create an archive with this file in a directory "dir", so when the archive is unpacked the "dir" directory will be created with the "file.txt" in it?

Preferable it should be through a command line option.

1

If you're not pointing to your specific directory with the drop-down options, you might want to look into self-extracting archive executables. There are a lot of great answers and walkthroughs already here on superuser. You can just add instructions or a script to your 7-zip file and have it accomplish any number of different things when running and extracting.

  • Thank, I will take a look at the reference. – Morten Zilmer Jun 21 '19 at 5:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.