pass the folder path to HCCPro to search for duplicate files
-
sfordham
- Posts: 5
- Joined: 01 Feb 2012 22:37
pass the folder path to HCCPro to search for duplicate files
Hi, I have set up a POM to open HCCPro with the intention of searching the folder and subfolders, I am pointing at. HCCPro opens but needs the path the "search path" Can anyone assist please 
-
RalphM
- Posts: 2143
- Joined: 27 Jan 2005 23:38
- Location: Cairns, Australia
Re: pass the folder path to HCCPro to search for duplicate f
Usually things like this need one of XY's built-in variables like <curpath> and most important the right quoting to pass it along to an external program.
If you post your POM's definition and a short procedure how you intend to use it (i.e. from list, tree or whatever) we might be able to help you further.
I assume you have consulted the examples in help re POM already.
If you post your POM's definition and a short procedure how you intend to use it (i.e. from list, tree or whatever) we might be able to help you further.
I assume you have consulted the examples in help re POM already.
Ralph 
(OS: W11 26H2 Home x64 - XY: Current x64 beta - Office 2024 64-bit - Display: 1920x1080 @ 125%)
(OS: W11 26H2 Home x64 - XY: Current x64 beta - Office 2024 64-bit - Display: 1920x1080 @ 125%)
-
highend
- Posts: 15016
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: pass the folder path to HCCPro to search for duplicate f
Afaik it doesn't support command line parameters. So you're out of luck.
One of my scripts helped you out? Please donate via Paypal
-
PeterH
- Posts: 2830
- Joined: 21 Nov 2005 20:39
- Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%
Re: pass the folder path to HCCPro to search for duplicate f
Maybe, at least, a script that builds a small .bat file?
In that .bat:
- set the current path
- maybe select current drive
- call the wanted program
Then execute this .bat file.
In that .bat:
- set the current path
- maybe select current drive
- call the wanted program
Then execute this .bat file.
-
admin
- Site Admin
- Posts: 67269
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: pass the folder path to HCCPro to search for duplicate f
Hi,sfordham wrote:Hi, I have set up a POM to open HCCPro with the intention of searching the folder and subfolders, I am pointing at. HCCPro opens but needs the path the "search path" Can anyone assist please
you know that XY has its own dupe finder built in?
Don
FAQ | XY News RSS | XY X
-
sfordham
- Posts: 5
- Joined: 01 Feb 2012 22:37
Re: pass the folder path to HCCPro to search for duplicate f
Thank you all for posting replies so quickly - very kind.
All I have now is PFA "check folder with HCCPro" \>C:\Program Files (x86)\HCC Pro\HCCPro.exe
Tried open """C:\Program Files (x86)\HCC Pro\HCCPro.exe"" ""<curpath>"" /compact";
Would like help on the bat file and how to incorporate into a PFA/POM
XY is probably the best piece of software I have seen - extraordinary
Thank You all again
All I have now is PFA "check folder with HCCPro" \>C:\Program Files (x86)\HCC Pro\HCCPro.exe
Tried open """C:\Program Files (x86)\HCC Pro\HCCPro.exe"" ""<curpath>"" /compact";
Would like help on the bat file and how to incorporate into a PFA/POM
XY is probably the best piece of software I have seen - extraordinary
Thank You all again
To see the attached files, you need to log into the forum.
-
highend
- Posts: 15016
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: pass the folder path to HCCPro to search for duplicate f
Their forum is down, the helpfile doesn't mention any cli parameters.
So there is only one option:
A simple XYplorer + Autohotkey script:
The compiled .ahk script is attached
So there is only one option:
A simple XYplorer + Autohotkey script:
Code: Select all
$ahkHelper = "D:\Tools\.Scripts\.AutoHotKey\HccPro_CopyText\HccPro_CopyText.exe";
copytext("<curpath>");
run "$ahkHelper";Code: Select all
#NoEnv
#NoTrayIcon
#SingleInstance force
appName := "C:\Program Files (x86)\HCC Pro\HCCPro.exe"
Run, %appName%, , , appID
WinWaitActive, Clone Cleaner ahk_class Tform_Main, , 2
if ErrorLevel
{
MsgBox, HccPro window not found...
return
}
else
SendInput {Insert}
WinWaitActive, ahk_class Tform_AddPath, , 2
SendInput %clipboard%
SendInput !a
ExitApp
To see the attached files, you need to log into the forum.
One of my scripts helped you out? Please donate via Paypal
-
sfordham
- Posts: 5
- Joined: 01 Feb 2012 22:37
Re: pass the folder path to HCCPro to search for duplicate f
$ahkHelper = "D:\Tools\.Scripts\.AutoHotKey\HccPro_CopyText\HccPro_CopyText.exe";
copytext("<curpath>");
run "$ahkHelper";
CHANGED ABOVE TO THIS BELOW TO REFLECT WHERE I PLACED THE "HcPro_CopyText.exe" file renamed (unchanged see *)
$ahkHelper = "C:\Users\Samsung-RF511\Documents\hccpro.exe";
copytext("<curpath>");
run "$ahkHelper";
* THIS IS THE FILE YOU GAVE ME AND WHICH I USE
#NoEnv
#NoTrayIcon
#SingleInstance force
appName := "C:\Program Files (x86)\HCC Pro\HCCPro.exe"
Run, %appName%, , , appID
WinWaitActive, Clone Cleaner ahk_class Tform_Main, , 2
if ErrorLevel
{
MsgBox, HccPro window not found...
return
}
else
SendInput {Insert}
WinWaitActive, ahk_class Tform_AddPath, , 2
SendInput %clipboard%
SendInput !a
ExitApp
I RUN THE XY SCRIPT AND IT DOES WHAT IT SHOULD EXCEPT THAT IT OPENS HccPro WITH THE FOLLOWING SEARCH PATH, EVEN WHEN I CLEAR ALL SAVED SEARCHES (SEE ATTACHED IMAGE)
C:\Users\Samsung-RF511\Documents\Priobadeach\EXE's&Zips
WHAT YOU GAVE ME IS 99% THERE AND I AM THANKFUL. ANY MORE IDEAS
copytext("<curpath>");
run "$ahkHelper";
CHANGED ABOVE TO THIS BELOW TO REFLECT WHERE I PLACED THE "HcPro_CopyText.exe" file renamed (unchanged see *)
$ahkHelper = "C:\Users\Samsung-RF511\Documents\hccpro.exe";
copytext("<curpath>");
run "$ahkHelper";
* THIS IS THE FILE YOU GAVE ME AND WHICH I USE
#NoEnv
#NoTrayIcon
#SingleInstance force
appName := "C:\Program Files (x86)\HCC Pro\HCCPro.exe"
Run, %appName%, , , appID
WinWaitActive, Clone Cleaner ahk_class Tform_Main, , 2
if ErrorLevel
{
MsgBox, HccPro window not found...
return
}
else
SendInput {Insert}
WinWaitActive, ahk_class Tform_AddPath, , 2
SendInput %clipboard%
SendInput !a
ExitApp
I RUN THE XY SCRIPT AND IT DOES WHAT IT SHOULD EXCEPT THAT IT OPENS HccPro WITH THE FOLLOWING SEARCH PATH, EVEN WHEN I CLEAR ALL SAVED SEARCHES (SEE ATTACHED IMAGE)
C:\Users\Samsung-RF511\Documents\Priobadeach\EXE's&Zips
WHAT YOU GAVE ME IS 99% THERE AND I AM THANKFUL. ANY MORE IDEAS
To see the attached files, you need to log into the forum.
-
highend
- Posts: 15016
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: pass the folder path to HCCPro to search for duplicate f
Probably because your current active tab shows that folder?I RUN THE XY SCRIPT AND IT DOES WHAT IT SHOULD EXCEPT THAT IT OPENS HccPro WITH THE FOLLOWING SEARCH PATH, EVEN WHEN I CLEAR ALL SAVED SEARCHES (SEE ATTACHED IMAGE)
C:\Users\Samsung-RF511\Documents\Priobadeach\EXE's&Zips
To prove it, run the script, open a text editor, ctrl + v, copy everything that was pasted into your editor and show it in this thread.
One of my scripts helped you out? Please donate via Paypal
-
sfordham
- Posts: 5
- Joined: 01 Feb 2012 22:37
Re: pass the folder path to HCCPro to search for duplicate f
Having cleared previous path in HCCPro.
I run the script and I find that it will point to the required path, which is what I want but will also include the last path unless I clear the search cache in the program prior to running the scripts.
This is a workable solution and I am very appreciative to "highend" for his excellent help.
I run the script and I find that it will point to the required path, which is what I want but will also include the last path unless I clear the search cache in the program prior to running the scripts.
This is a workable solution and I am very appreciative to "highend" for his excellent help.
-
highend
- Posts: 15016
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: pass the folder path to HCCPro to search for duplicate f
Clear the stored paths...
E.g.:
Look where your hcc.ini file is stored and adapt the $iniFile variable if necessary...
E.g.:
Code: Select all
$ahkHelper = "C:\Users\Samsung-RF511\Documents\hccpro.exe";
$iniFile = "C:\Users\%USERNAME%\AppData\Local\Heatsoft\HCCPro\HCC.ini";
$iniContent = regexreplace(readfile($iniFile), "\[CurrentSearchData_\d+[\s\S]*?<crlf>[\s\S]+(?=\[)", "");
writefile($iniFile, $iniContent);
copytext("<curpath>");
run "$ahkHelper";
One of my scripts helped you out? Please donate via Paypal
XYplorer Beta Club