N
N
newaitix2019-04-28 22:38:17
Data archiving
newaitix, 2019-04-28 22:38:17

How to archive files with relative paths instead of absolute ones?

"%ProgramFiles%\WinRAR\WinRAR.exe" a -r "C:\Users\user\Desktop\%var%.zip" "D:\OSPanel\domains\localhost\*"

The task is to archive the contents of the D:\OSPanel\domains\localhost\ folder into a zip archive and place this archive on the desktop.
This is how it all happens. But archiving takes place in compliance with all paths
5cc6007dba0c1123053065.png
. And I need the archive to contain only folders and files that are located in the localhost folder

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Moskus, 2019-04-29
@newaitix

In the first line, you need to go to this folder (command cd), and then add the contents to the archive.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question