Hi
I have a 7 zip file that I need to unzip but not save it to personal computers but a folder on the server.
Im trying to make is easy so just a click on a icon and Im thinking of a script or command that someone clicks on and asks what subfolder they want to open within the folder and then asks for password thats on the subfolder and unzips as a complete folder to a specific location.
The script or command will always be in the folder so people can just click on it to open files. If 7 zip is difficult I can use the zip function in windows .
Im very rusty on .DOS so any reply in easy english would help.
Folder is C:\Downloads and there will be zipped sub folders within of which I need to unzip etc. They need to unzip to R:\DOWNLOADS
Has anyone any ideas or other suggestions?
Am I able to get a script or command to unzip.
Moderator: DosItHelp
-
- Expert
- Posts: 1166
- Joined: 06 Sep 2013 21:28
- Location: Virginia, United States
Re: Am I able to get a script or command to unzip.
You have been given the solution multiple times in multiple topics.
Last edited by ShadowThief on 27 Apr 2018 03:49, edited 1 time in total.
Re: Am I able to get a script or command to unzip.
WTF RTFM????
Re: Am I able to get a script or command to unzip.
It seems that the folder server is already mounted to your computer, so for that case siberia-man gave you the answer before:
Or in other words:siberia-man wrote: ↑20 Apr 2018 19:347za -h wrote:Code: Select all
-o{Directory}: set Output directory
Code: Select all
7z x yourArchive.zip -o"R:\DOWNLOADS"
Re: Am I able to get a script or command to unzip.
Unzipping can you do witch python 3.x.x.
Just create a script:
Example.py:
python: https://www.python.org/
more info:
https://docs.python.org/2/library/zipfile.html
Just create a script:
Example.py:
Code: Select all
import zipfile
zip_ref = zipfile.ZipFile("Yourzip.zip", 'r')
zip_ref.extractall()
zip_ref.close()
more info:
https://docs.python.org/2/library/zipfile.html