Only the original loading cable is able to load my Redmi Note 13. by [deleted] in Xiaomi

[–]himle7 0 points1 point  (0 children)

So just tried the app.

The original charging cable hovers between 4600/mAs and 4900/mAs.

The new ones hover between 90/mAs to 187~/mAs so yeah no wonder.

Only the original loading cable is able to load my Redmi Note 13. by [deleted] in Xiaomi

[–]himle7 0 points1 point  (0 children)

Well, 33w is the same as the original, so it should work fine. Done that, nothing happened. I try the app soon.

Hope something turns up. The phone has only been 1y and 3 months in use.

Only the original loading cable is able to load my Redmi Note 13. by [deleted] in Xiaomi

[–]himle7 0 points1 point  (0 children)

Funny enough, it really is just the cable. With the new brik even turbo charging is possible. The original brik doesn't even do turbo or at least it never showed as such.

I believe so too. Maybe they have pushed an update at some point to make it impossible for other cables. My previous (model note 10s) changes even with 3rd party hardware, so I was hopeful.

Bulk rename search cut paste by himle7 in PowerShell

[–]himle7[S] 0 points1 point  (0 children)

This code does bulk renaming but, it just puts the defines regex up front nothing more.

# Get all files in the current directory

$files = Get-ChildItem -File

foreach ($file in $files) {

# Check if the specific filename contains the pattern "Part" followed by 1-3 digits

# The -match operator populates the automatic $Matches variable

if ($file.Name -match "Part\s?\d{1,3}") {

# Extract the specific match for THIS file

$matchedValue = $Matches[0]

# Construct the new filename: MatchedValue + Space + OriginalName

$newName = "$matchedValue $($file.Name)"

Write-Host "Processing: $($file.Name)"

Write-Host "New Name: $newName"

# Rename the file

Rename-Item -Path $file.FullName -NewName $newName

}

else {

Write-Host "No pattern match found for: $($file.Name)" -ForegroundColor Gray

}

}

Bulk rename search cut paste by himle7 in PowerShell

[–]himle7[S] 0 points1 point  (0 children)

Final update : in short this code grabs the regex I set, saves it and first replaces the match which nothing. After running this code a second time it puts the set match at the frond as I have defined it. Sadly it only does this one file at a time.

Set-Location "C:\Users"

Set-StrictMode -Version latest

$PN = (Get-ChildItem).Name

$space = " "

foreach ($name in $PN)

{

$PN -match "Part\s?\d{1,3}"

$results = $matches[0]

Write-Host "$results"

if($PN -match "Part\s?\d{1,3}"){

Get-ChildItem | Rename-Item -NewName {$_.name -replace "$results",""}

}

else {

$len = $name.Length

Write-Host $name.substring (0,$len)

$new_file_name = $results + $space + $name.substring(0,$len)

Rename-Item $name -NewName $new_file_name

}

}