Compressed Folder Passwords

C

CJ

I have recently started using passwords on compressed
(zipped) folders. This appears to work very well except
subsequent files added to the passworded compressed folder
do not have the password applied to them.

Does anyone know of a way to force new files added to a
passworded compressed folder to have the password applied
to them?

Or does anyone know of a way to automate the process of
removing and re-adding the password to the folder as this
is what i need to do to ensure the password is applied to
all files in the folder.

Any help would be great
 
J

Jon

To add it manually .....
After adding the new file(s) (even with no files selected)

File > Remove Password
File > Add Password

A simple crude script to automate it (which you could definitely improve
upon) would be the following...(between the asterisks)

Paste it into notepad.
Change the filename and password as appropriate on the second and third
lines of the script
Save with .vbs extension
Place a shortcut to it your start menu (create a new folder there if
necessary)
Right-click on the shortcut > Properties > Shortcut Tab
Put a key combination like "ctrl-alt-P" for the shortcut

To run, open up your zipped folder, add your files and then press
"ctrl-alt-P" together


'********************************
set WshShell = WScript.CreateObject("WScript.Shell")
filename = "a.zip"
password = "pass1"

wscript.sleep 2000


'Remove password
if wshshell.appactivate(filename) then

wshshell.sendkeys "%FR"
WScript.Sleep 200
wshshell.sendkeys password & "{ENTER}"
WScript.Sleep 2000
end if


'Add Password
if wshshell.appactivate(filename) then
wshshell.sendkeys "%Fw"
WScript.Sleep 200
wshshell.sendkeys password & "{TAB}"
WScript.Sleep 200
wshshell.sendkeys password & "{ENTER}"
end if
'*********************************



Jon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top