Replacing duplicates with hard links
Re: Replacing duplicates with hard links
Yes. With 1526 duplicates everything works fine.
Thank you !!!
Thank you !!!
Re: Replacing duplicates with hard links
Checked on another folder.
result text get("Status", 1)
Result text trim(gettoken(regexmatches(get("Status", 1), "\b[0-9 ]+\b", "|"), -1, "|"))
Instead of 3602
result text get("Status", 1)
Code: Select all
найдено: 8 227 дублей в 3 602 группах
Code: Select all
602
Re: Replacing duplicates with hard links
Code: Select all
$txt = "найдено: 8 227 дублей в 3 602 группах";
text trim(gettoken(regexmatches($txt, "\b[0-9 ]+\b", "|"), -1, "|"));
Try this:
Code: Select all
$cntAllGroups = replace(gettoken(regexmatches(get("Status", 1), "\b[1-9][0-9 ]*\b", "|"), -1, "|"), " ");
One of my scripts helped you out? Please donate via Paypal
Re: Replacing duplicates with hard links
Not in Find (duplicates) mode, aborted!
Re: Replacing duplicates with hard links
You did forget to change
$dupeColumnName = "Dupes";
...One of my scripts helped you out? Please donate via Paypal
Re: Replacing duplicates with hard links
I'm confused. need to rest.
Re: Replacing duplicates with hard links
Hello. Checked the option with "replace(gettoken(regexmatches(get("Status", 1), "\b[1-9][0-9 ]*\b", "|"), -1, "|"), " ")"
Result 602.
And there is one more problem. A hard link is not created if the name contains an accent mark (U+00B4)
The deletion works but the Hard Link is not created.
Result 602.
And there is one more problem. A hard link is not created if the name contains an accent mark (U+00B4)
Code: Select all
80´s Movies
Re: Replacing duplicates with hard links
Code: Select all
$txt = "найдено: 8 227 дублей в 3 602 группах";
echo replace(gettoken(regexmatches($txt, "\b[1-9][0-9 ]*\b", "|"), -1, "|"), " ");
Or try to switch the codepage by adding a
@CHCP 65001
to the beginning of $batHeader...One of my scripts helped you out? Please donate via Paypal
Re: Replacing duplicates with hard links
chcp 65001 solved the problem, now hard links are being created.
Did I insert chcp 65001 correctly?
Result echo replace(gettoken(regexmatches(get("Status", 1), "\b[1-9][0-9 ]*\b", "|"), -1, "|"), " ")
Did I insert chcp 65001 correctly?
Code: Select all
$batHeader = <<<>>>
chcp 65001
@ECHO OFF
REG QUERY "HKU\S-1-5-19" >NUL 2>NUL && GOTO :ENDUAC
SET "vbsFile=%TEMP%\~getAdmin.vbs"
IF "%1" NEQ "" (FOR /F "tokens=*" %%I IN ('ECHO %*') DO SET "param=%%~I")
ECHO Set UAC = CreateObject^("Shell.Application"^)> "%vbsFile%"
ECHO UAC.ShellExecute "cmd", "/c """"%~s0"" ""%param%""""", "", "runas", ^1>> "%vbsFile%"
CSCRIPT "%vbsFile%" //Nologo
IF EXIST "%vbsFile%" DEL /Q "%vbsFile%" >NUL 2>NUL
EXIT /B
:ENDUAC
>>>;
Re: Replacing duplicates with hard links
YeahDid I insert chcp 65001 correctly?
Show these two:
echo get("Status", 1)
echo regexmatches(get("Status", 1), "\b[1-9][0-9 ]*\b", "|");
One of my scripts helped you out? Please donate via Paypal
Re: Replacing duplicates with hard links
It depends on the language. Like this in English:
Re: Replacing duplicates with hard links
echo regexmatches(get("Status", 1), "[1-9][0-9 ]*", "|");
What does this show?
One of my scripts helped you out? Please donate via Paypal
Re: Replacing duplicates with hard links
Code: Select all
8|227 |3|602
Re: Replacing duplicates with hard links
That doesn't make sense at all...
Last try:
Last try:
Code: Select all
text replace(regexreplace(get("Status", 1), "^([^0-9]+?)([0-9 ]+)([^0-9]+?)([0-9 ]+)([^0-9]+?)$", "$4"), " ");
One of my scripts helped you out? Please donate via Paypal
Re: Replacing duplicates with hard links
Code: Select all
найдено:8 227дублейв3 602группах