You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This works, however, the name of each directory is added to the archive as you can see in the screenshot. The final directory specified (IE test) should be the 1st.
The text was updated successfully, but these errors were encountered:
I'll have to add a command line argument to specify what the root should be, but there is a workaround. Make sure the current working directory is: c:\users\bob\desktop
Then execute: C:\Python27\python.exe c:\users\bob\desktop\SCRIPTS\tar.py -autoexec c:\users\bob\desktop\thing test
Uh oh!
There was an error while loading. Please reload this page.
If you run the script from a location not the same as the input and output, the archive created has the name of all directories in the path.
Example
Create a folder called SCRIPTS and place it on the Desktop with the tar.py script inside.
Open Command Prompt and type:
c:\users\bob\desktop\SCRIPTS\tar.py -autoexec c:\users\bob\desktop\thing c:\users\bob\desktop\test
This works, however, the name of each directory is added to the archive as you can see in the screenshot. The final directory specified (IE test) should be the 1st.

The text was updated successfully, but these errors were encountered: