Search found 129 matches

by cadudesun
05 Dec 2021, 16:08
Forum: Ask for Help (v1)
Topic: Possible search and replace in batches within .LNK file content based on path (e.g. target from C:\App\* to H:\App\*)?
Replies: 2
Views: 520

Re: Possible search and replace in batches within .LNK file content based on path (e.g. target from C:\App\* to H:\App\*

Hi @mikeyww
Many thanks for sharing the script and helping again!
I just used it updating hundreds of shortcuts.
Cheers
by cadudesun
05 Dec 2021, 12:51
Forum: Ask for Help (v1)
Topic: Possible search and replace in batches within .LNK file content based on path (e.g. target from C:\App\* to H:\App\*)?
Replies: 2
Views: 520

Possible search and replace in batches within .LNK file content based on path (e.g. target from C:\App\* to H:\App\*)?

Hi, So far this script I got from another thread has worked perfectly for me: oldDir := "K:", newDir := "H:" Loop, Files, %A_ScriptDir%\*.lnk { FileGetShortcut, %A_LoopFilePath%, target, dir, args, desc, icon, iconNum, state If (target ~= oldDir) FileCreateShortcut, % StrReplace(target, oldDir, newD...
by cadudesun
22 Nov 2021, 14:17
Forum: Ask for Help (v1)
Topic: Possible search and replace within .LNK file content in batches (e.g. target drive field from C: to H:)? Topic is solved
Replies: 5
Views: 645

Re: Possible search and replace within .LNK file content in batches (e.g. target drive field from C: to H:)? Topic is solved

Hi, So far the script provided by mikeyww has worked perfectly for me. oldDir := "C:", newDir := "H:" Loop, Files, %A_ScriptDir%\*.lnk { FileGetShortcut, %A_LoopFilePath%, target, dir, args, desc, icon, iconNum, state If (target ~= oldDir) FileCreateShortcut, % StrReplace(target, oldDir, newDir), %A...
by cadudesun
20 Nov 2021, 12:00
Forum: Ask for Help (v1)
Topic: Possible to create commands to compress to .zip a certain folder list? Topic is solved
Replies: 7
Views: 1126

Possible to create commands to compress to .zip a certain folder list? Topic is solved

Hi, I'd appreciate your help. For backup purposes, I intend to create zip files assembling several folders from different folders within my user directory. For instance: C:\Users\%username%\AppData\Roaming\Folder1 C:\Users\%username%\AppData\Roaming\Folder2 C:\Users\%username%\Documents\Folder1 C:\U...
by cadudesun
06 Nov 2021, 21:07
Forum: Ask for Help (v1)
Topic: Possible search and replace within .LNK file content in batches (e.g. target drive field from C: to H:)? Topic is solved
Replies: 5
Views: 645

Re: Possible search and replace within .LNK file content in batches (e.g. target drive field from C: to H:)? Topic is solved

Many thanks for helping again mikeyww I ran the script from the same folder the .lnk files are stored, but nothing has changed within .lnk files regarding the driver letter. First I ran the script from the original drive (C:), having the script stored in the same folder of the .lnk files. Since it d...
by cadudesun
06 Nov 2021, 07:15
Forum: Ask for Help (v1)
Topic: Possible search and replace within .LNK file content in batches (e.g. target drive field from C: to H:)? Topic is solved
Replies: 5
Views: 645

Possible search and replace within .LNK file content in batches (e.g. target drive field from C: to H:)? Topic is solved

Hi, I'd appreciate your help. As shown in the screenshot below, I'm opening .LNK file properties and changing just the driver letter manually. Can AHK search and replace .LNK file content in batches, changing all *.LNK files in a folder? If yes, could someone please share a script? I'd need to chang...
by cadudesun
25 Sep 2021, 16:07
Forum: Ask for Help (v1)
Topic: Possible batch export different Windows registry keys into a single .reg file? Topic is solved
Replies: 10
Views: 877

Re: Possible batch export different Windows registry keys into a single .reg file? Topic is solved

Understood. Script tested now and it's working perfectly.
Many thanks for your support and attention mikeyww!
I learned a lot from this thread 👍
by cadudesun
25 Sep 2021, 06:23
Forum: Ask for Help (v1)
Topic: Possible batch export different Windows registry keys into a single .reg file? Topic is solved
Replies: 10
Views: 877

Re: Possible batch export different Windows registry keys into a single .reg file? Topic is solved

Hi @mikeyww
Thanks for your availability to check the actual script and output, which are available for direct download here (zip): https://bit.ly/3i4jfXW
I also recorded my screen detailing everything I performed and when duplicates are noticed: https://bit.ly/3zHcPUA
by cadudesun
24 Sep 2021, 21:03
Forum: Ask for Help (v1)
Topic: Possible batch export different Windows registry keys into a single .reg file? Topic is solved
Replies: 10
Views: 877

Re: Possible batch export different Windows registry keys into a single .reg file? Topic is solved

The script does not check for duplicated keys among multiple files. Thanks for the reply! Actually, there is no duplicated key in the input .reg files that are being read/appended. The input files are good as they are, and there is no need for for checking duplicated keys among multiple files. The ...
by cadudesun
24 Sep 2021, 14:43
Forum: Ask for Help (v1)
Topic: Possible batch export different Windows registry keys into a single .reg file? Topic is solved
Replies: 10
Views: 877

Re: Possible batch export different Windows registry keys into a single .reg file? Topic is solved

Many thanks for sharing the full syntax mikeyww 👍 It's the first time I'm using "FileRead" and "FileAppend" and without your help I'd never accomplish exporting different Windows registry keys into a single .reg The syntax worked as expected, however there is just a minor issue: The content of the r...
by cadudesun
24 Sep 2021, 12:20
Forum: Ask for Help (v1)
Topic: Possible batch export different Windows registry keys into a single .reg file? Topic is solved
Replies: 10
Views: 877

Re: Possible batch export different Windows registry keys into a single .reg file? Topic is solved

You could create the REG files, use FileRead to read the text, FileAppend to a new file, and omit the duplicate file header; or just append one file's text to the other file. Thanks for your reply @mikeyww Considering the FileRead and FileAppend commands to accomplish the task, would it be possible...
by cadudesun
24 Sep 2021, 11:34
Forum: Ask for Help (v1)
Topic: Possible batch export different Windows registry keys into a single .reg file? Topic is solved
Replies: 10
Views: 877

Possible batch export different Windows registry keys into a single .reg file? Topic is solved

Hi, I'd appreciate your help. I use successfully the script below to export a single registry key to a .reg file: key = HKEY_CURRENT_USER\Software\NameOfApplication out = %A_ScriptDir%\NameOfApplication.reg FileRecycle, %out% RunWait, %A_WinDir%\System32\reg.exe export "%key%" "%out%,, HIDE I tried ...
by cadudesun
28 Feb 2021, 08:43
Forum: Ask for Help (v1)
Topic: Possible transposing a Registry backup command from BAT to AHK? Topic is solved
Replies: 2
Views: 280

Possible transposing a Registry backup command from BAT to AHK? Topic is solved

Hi, I'd appreciate your help. The code below is from a BAT script aimed to back up the Windows Registry , creating the REG output under the same folder the BAT file is stored. @echo off reg export "HKEY_CURRENT_USER\Software\TechSmith\Camtasia Studio" "%cd%\Camtasia_Registry_Backup.reg" /y pause Is ...
by cadudesun
19 Jan 2021, 08:46
Forum: Ask for Help (v1)
Topic: Clipboard has two lines. How to store each line as different variables assigning hotkeys to paste them?
Replies: 1
Views: 205

Clipboard has two lines. How to store each line as different variables assigning hotkeys to paste them?

Hi, I'd appreciate your help. The direct question is: Clipboard has two lines. How to store each line as different variables assigning a different hotkey to each one? The context of the question is: As shown in this screen-recording ( https://bit.ly/3ipXi4N ), you can copy a link to OneNote's pages,...
by cadudesun
09 Oct 2020, 12:40
Forum: Ask for Help (v1)
Topic: Possible to compile .ahk including the subfolders-files under the script %A_ScriptDir%?
Replies: 3
Views: 592

Re: Possible to compile .ahk including the subfolders-files under the script %A_ScriptDir%?

Many thanks for the direction boiler ! A clarification please: The FileInstall command is the second step to run after the compiled version was already created, right? I mean: Step 1) Compile the script "ahkscript.exe" Step 2) Run FileInstall to append the folder/files in the "ahkscript.exe", throug...
by cadudesun
09 Oct 2020, 11:31
Forum: Ask for Help (v1)
Topic: Possible to compile .ahk including the subfolders-files under the script %A_ScriptDir%?
Replies: 3
Views: 592

Possible to compile .ahk including the subfolders-files under the script %A_ScriptDir%?

Hi, I'd appreciate your help. As detailed in this screen-recording ( https://bit.ly/2GyRRCd ), I compiled a script that copies a certain content (folders/files) under %A_ScriptDir%, then pastes it into a fixed path (ex.: C:\Temp). The compiled script I could develop, by using the 'Compile Script' fu...

Go to advanced search