topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Sunday September 19, 2021, 2:49 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - menych [ switch to compact view ]

Pages: [1]
1
It worked!!!!

You are a genius! Thank you!

Four more questions:

1) So, to delete files after, I'd replace 'a' with 'm'?

2) How would I change it to hide command line after execution?

3) It's my very first experience with DC, how do donations work and what's the proper amount?

4) Can AHK be used to fill a multipage online form on one server by taking values from an external file or from another web page?

THANKS AGAIN!

2
'rar.exe' is not recognized as an internal or external command, operable program or batch file.

E:\Dropbox\@@@ CLIENTS @@@\ABC Inc.>

rar.exe is now in the same folder as the AutoHotkey.ahk, which is the My Documents folder

UPDATE: interestingly, rar.exe does not work when I call it from the My Documents folder, but it does work when I copy it to the root of c:

UPDATE2: I moved the ahk file to the root of c: and it almost WORKED!!!

It archived the first file as intended. But then it stopped there.

3
getting an error in cmd:

'C:\Program' is not recognized as an internal or external command, operable program or batch file.

4
OK,

So I select files in Everything, press Win-Z, I get the Done message box, but no archives are created.

I tried playing around with rar.exe in the ahk file by changing call with rar.exe to:

RunWait, %comspec% /c C:\Program Files\WinRAR\Rar.exe a -ep -p%Password% "%OutDir%\%OutFileName%.rar" "%A_LoopField%",,Hide

and

RunWait, %comspec% /c "C:\Program Files\WinRAR\Rar.exe" a -ep -p%Password% "%OutDir%\%OutFileName%.rar" "%A_LoopField%",,Hide

But the archives are still not being created.

I love the algorithm you came up with. It's brilliant. Now, we have to make sure that the commands are reaching the rar.exe, which I suspect they don't.

Is there something I can do to debug?

5
Thank you so much for your help.

I've just installed AHK.

I've never used it before, so I'm a bit lost...

I copied your script into autohotkey.ahk and ran the program, but nothing seems to happen other than I'm getting the following output:

---- C:\Users\Unomyname\Documents\AutoHotkey.ahk
002: SetBatchLines,-1
004: if not A_IsAdmin 
012: Password := "MyPassword"
015: Return (3.38)

How do I actually use it?

Thanks again

6
WinRAR has a great function that allows archiving multiple files each to its own archive.

Unfortunately, it saves all of these archives to a single folder, which kind of defeats the purpose of this functionality for me.

What I want is do be able to:

1. Select multiple files in various folders on my computer (I will be using Everything search for that);
2. Either drag-and-drop them or right-click-menu them to a program that would zip each of these files separately with a predefined password, save each file to the same folder as the original, and delete the original.

For example, if I selected:

e:\some folder\@and one more [email protected]@@\file1.docx
d:\some folder\@and one more [email protected]@@\file23 34.exe
e:\some folder\@and one more [email protected]@@\file23 34.docx

I would like the program (let's call it tmfzip.exe) to read the contents of the tmfpass.txt file in the same folder as tmfzip.exe, and save password-protected archives as:

e:\some folder\@and one more [email protected]@@\file1.zip
d:\some folder\@and one more [email protected]@@\file23 34.zip
e:\some folder\@and one more [email protected]@@\file23 34.zip

and then delete the originals.

Can you please help?

Pages: [1]