topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Friday June 20, 2025, 9:39 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

Recent Posts

Pages: prev1 ... 17 18 19 20 21 [22] 23 24 25 26 27 ... 225next
526
50,000mAh @ 3.7V = 185Wh = Not likely to be allowed on a passenger aircraft, (anything over 100Wh is usually only by permission of the airline these days - anything over 160Wh is a definite no according to the few airline T&Cs I've looked at).

Why they don't give real values ?

Power banks are always quoted with reference to the primary cell voltage they use, in this case Li-Poly which is 3.7V.

It also looks good to the marketing muppets if it says 50,000mAh (@ 3.7V) rather than ~30,000mAh (@ 5V * 0.8) because a it's a bigger number.

I think is 185 Wh independently the voltage.

Power = Voltage * Current (of the primary cell in this case)

So if 19 volts : 185 Wh / ?? Ah = 19 volts ---->  we obtain 9737 mAh

You also have to take into account converter efficiency which will be around 80-85% for a very good power bank and is usually somewhere between 70-80% for the majority.

So your 185 Wh might be 185*0.8 in real life after conversion to a higher output voltage.
There's also probably a reduction in efficiency, (greater losses), the higher the output voltage so while 5V output may be 80% efficient, 19V might only be 70% efficient.

It's also why they can't quote figures based on theoretical efficiencies.
527
General Software Discussion / Re: Slow Windows load even with SSD
« Last post by 4wd on February 13, 2019, 09:25 PM »
First thing would be to find out what other programs are starting, in Windows 10 open the Task Manager->More Details->Start-up tab - it'll list programs that are starting at boot and how much they impact system start.

There's also autoruns from Microsoft.

From either one you can disable the various programs and see if there's one/some that are impacting startup a lot, it may be that they don't need to run at startup at all.

It might help if you mention what version of Windows you're talking about. :)
528
Living Room / Re: Refurbished or used internal hard disks 3½ 6TB-12TB
« Last post by 4wd on February 11, 2019, 05:43 PM »
Warranties & Guarantees - They are an indication of the faith manufacturers have in their product, that's all.  They mean close to, or absolutely, zero when it comes to your data.

SSDs sold on Chinese retail/wholesale sites are cheap for a reason, they frequently use sub-standard components, are DRAM-less (slow), QC is questionable, and you have little to zero chance of getting any rectification under warranty in a decent time frame, (if at all) ... but ... they are cheap, fast read storage for data you don't care about and as such they have their place if you recognise them as such.

Just a note here: I have nothing against these Chinese sites, most of my stuff comes from them but you have to know what you are getting and set your expectations accordingly, (mine are non-existent).
As I said, I have a few of these cheap SSDs and they're great as a fast USB drive, game drive, or anywhere else I don't care what happens to the data, (even though I just installed one in a security NVR).

If you want known reliability, (and a warranty that might actually mean something), then you basically need to purchase brand name products from Samsung EVO, SanDisk Ultra, WD Blue, Kingston, Crucial MX, Seagate , Toshiba, etc - if all you are interested in is specs then look at what they offer to see what you should be looking for.

1TB Samsung EVO or QVO SSDs can now be had for <AU$200 (~US$140) if you look around - your main problem is you live on an island and I would think that shipping costs are going to be a big factor in any decent SSD/HDD you buy online or locally.

DRAM-less SSDs
529
Living Room / Re: Refurbished or used internal hard disks 3½ 6TB-12TB
« Last post by 4wd on February 11, 2019, 07:12 AM »
But the usb-otg pendrive I propose have 256 GB storage !!!!!! for a minimum price !!!!4 :o

It's also a no name brand selling for less than 10% of the cost of a trusted well known brand name 256GB USB 3.0 flash drive.

The words "too good to be true" come to mind.

What exactly are you trying to achieve?

At the moment it looks like the cheapest possible storage option at the cost of your data.

As someone who is rather fatalistic when it comes to my own data, (ie. Shit happens), there are some roads even I won't travel down in the pursuit of cheap storage.
530
There's also Advanced Renamer which uses exiftool to grab all the metadata from images, videos, etc.

The new name preset would be something like: <DirName>_<Img Year>_<Img Month><Img Day>_<Img Hour><Img Min>.<Ext>

Would probably be 24 Hour time, (eg. 1805), so you might have to read the manual if you really want 12 Hour.
531
You both made me remember I know nothing about "Group Policy" in general, and even less than nothing about editing such - so forgive me the quality of this question, please: Does it make sense to be able to edit GROUP policy, when I am the only user?

Yes because you can limit the actions of programs also, classic example: Block Avira Ads

Note: That is an example - an old example.

Whether or not GP Editor is useful to you ... that's entirely subjective.
532
Living Room / Re: Refurbished or used internal hard disks 3½ 6TB-12TB
« Last post by 4wd on February 09, 2019, 10:32 PM »
Ejem. What do you think about this ?

https://www.ebay.com...er-Cool/264013985876

I have one, USB, USB C, and Micro-B - put your own uSD card in or plug in a normal flash drive, USB HDD, etc.
533
Living Room / Re: save videos from websites - new service
« Last post by 4wd on February 06, 2019, 09:40 PM »
Forgot, there's also the offerings from Freemake.
534
Living Room / Re: save videos from websites - new service
« Last post by 4wd on February 06, 2019, 06:10 PM »
Also Streamlink which supports a lot of sites and can be extended via plugins - it is a CLI program though.
535
Inox patchset is applied on the chromium source code and tries to prevent data transmission to Google to get a minimal Chromium based browser:
https://github.com/gcarq/inox-patchset

ungoogled-chromium is Google Chromium, sans integration with Google. It also features some tweaks to enhance privacy, control, and transparency (almost all of which require manual activation or enabling):
https://github.com/E...n/ungoogled-chromium

Or you could just use Iridium - Iridium/Chromium differences
536
Living Room / Re: Refurbished or used internal hard disks 3½ 6TB-12TB
« Last post by 4wd on February 05, 2019, 05:46 PM »
For your OS get a decent SSD: Samsung 850/860 EVO, SanDisk Plus, or equivalent for a normal SATA SSD.

Samsung 970 NVMe M.2 for a more modern board with M.2 slots, (or use it with a PCIe adapter if you have PCIe v3), and your machine can boot off it.

128GB is more than enough for Windows 10 and quite a few programs, however, you may want to go bigger as SSDs generally work better if they have ~25-30% free space, (eg. don't get a 128GB SSD if your OS drive is currently using 100GB).

I've used one of these "cheap" SSDs as my OS drive, (Ramsta 480GB), they are slow compared to the Samsung I now have and the SanDisk I used to have.
537
Living Room / Re: Refurbished or used internal hard disks 3½ 6TB-12TB
« Last post by 4wd on February 05, 2019, 05:47 AM »
Are good to installa the windows operating system ?
Or are very cheap ? What do you think ?
How can I determine these features ?

Reeino 960GB SSD for $83

Critical review of Reeino SSD:


You decide if your data is worth anything.

NOTE: I'm not recommending these SSDs one way or the other, do your research.
538
Living Room / Re: Refurbished or used internal hard disks 3½ 6TB-12TB
« Last post by 4wd on February 04, 2019, 05:13 PM »
You can get for 100 dollars a 1 TB SSD in ebay , aliexpress, .....

Only really good for WORM-like (Write Once, Read Many - or more accurately, Write Minimally, Read Many) application I've found, eg. Steam Games library, data that doesn't get modified much, etc

I have a few of these types of SSD, (Netac, Ramsta, etc), ranging from 360GB->720GB, (a mix of 2D and 3D Flash technology - supposedly), and they are all DRAM-less designs, real world performance is variable.

Read performance can be anywhere between 290-520MB/s, write performance varies all over the place depending on what you're writing, (small/large files), but I've found it about on par with a good HDD for sustained writes, (sometimes worse).

Main use I have for them is:
Games library
Reasonably robust portable storage, (stick them in a case)
Ephemeral data, (I don't care if it disappears)

Certainly wouldn't trust anything non-replaceable, not backed up, or use them anywhere performance was a requirement.

Samsung 860 EVO 1TB SSDs can be had for under AU$200 and prices may drop further given the recent emergence of QLC NAND technology, (which oddly enough, has similar characteristics - limited write performance, maximum read performance compared to something like the 860 EVO).
539
DC Gamer Club / Re: Latest Steam Giveaway
« Last post by 4wd on February 02, 2019, 09:29 PM »
For those that are interested in the Dyatlov Pass Incidentw, (a couple of mentions on DC here and here), the game Khalot is available free on Steam for a limited time.

Narrated by one of the most popular British actors, Sean Bean, Kholat is an exploration adventure game with elements of horror, inspired by a true event known as the Dyatlov Pass incident – a mysterious death of nine Russian hikers, which led to countless, unconfirmed hypotheses. The player will plunge directly into the boundless scenery of the inhospitable Ural Mountains with the task to find out what really happened. In the course of events, you may come across more speculations than expected...
540
I have done that in VBS and PoSh, but want a GUI,

If you've already done a PoSh script then why not design and add a GUI to it using POSHGUI ?

It's pretty easy to integrate into your script.
541
PowerShell script: ArcDirMatcher.ps1

2019-01-24 11_48_11-ArcDirMatcher.png

As you can see, rather simple.

It outputs to a text file in the archive folder, (ArcDirMatcher.txt), that can be easily edited to a command file and then run to remove the folders.

Sample Output
Rem -- Replace 'Matches:' with 'rmdir /s /q' in a text editor,
Rem -- then rename the extension from '.txt' to '.cmd'
Rem -- and run it to remove folders.

Rem Match 1: D:\Downloads\Books\9781783551712-LEARNING_PYTHON_Code.zip
Matches: "K:\Test\9781783551712-LEARNING_PYTHON_Code"

Rem Match 2: D:\Downloads\Books\9781783552016-MASTERING_SOCIAL_MEDIA_MINING_WITH_PYTHON_Code.zip
Matches: "K:\Test\9781783552016-MASTERING_SOCIAL_MEDIA_MINING_WITH_PYTHON_Code"

Rem Match 3: D:\Downloads\Books\9781783555130-PYTHON_MACHINE_LEARNING_code.zip
Matches: "K:\Test\9781783555130-PYTHON_MACHINE_LEARNING_code"

Rem Match 4: D:\Downloads\Books\9781783980420-PYTHON_FOR_SECRET_AGENTS_code.zip
Matches: "K:\Test\9781783980420-PYTHON_FOR_SECRET_AGENTS_code"

Rem Match 5: D:\Downloads\Books\9781784393878-PANDAS_COOKBOOK_Code.zip
Matches: "K:\Test\9781784393878-PANDAS_COOKBOOK_Code"

Rem Match 6: D:\Downloads\Books\9781785280009-LINUX_DEVICE_DRIVERS_DEVELOPMENT_Code.zip
Matches: "K:\Test\9781785280009-LINUX_DEVICE_DRIVERS_DEVELOPMENT_Code"

Rem Match 7: D:\Downloads\Books\9781785281655-DOCKER_ON_WINDOWS_Code.zip
Matches: "K:\Test\9781785281655-DOCKER_ON_WINDOWS_Code"

Rem Match 8: D:\Downloads\Books\9781785289729-MASTERING_PYTHON_Code.zip
Matches: "K:\Test\9781785289729-MASTERING_PYTHON_Code"

Rem Match 9: D:\Downloads\Books\9781785883804-BAYESIAN_ANALYSIS_WITH_PYTHON_Code.zip
Matches: "K:\Test\9781785883804-BAYESIAN_ANALYSIS_WITH_PYTHON_Code"

Rem Match 10: D:\Downloads\Books\9781785885587-NODEJS_DESIGN_PATTERNS_SECOND_EDITION_Code.zip
Matches: "K:\Test\9781785885587-NODEJS_DESIGN_PATTERNS_SECOND_EDITION_Code"

Rem Match 11: D:\Downloads\Books\9781785889622-MACHINE_LEARNING_ALGORITHMS_Code.zip
Matches: "K:\Test\9781785889622-MACHINE_LEARNING_ALGORITHMS_Code"

Rem Match 12: D:\Downloads\Books\9781786462169-TENSORFLOW_MACHINE_LEARNING_COOKBOOK_Code.zip
Matches: "K:\Test\9781786462169-TENSORFLOW_MACHINE_LEARNING_COOKBOOK_Code"

Rem Match 13: D:\Downloads\Books\9781786466204-GO_DESIGN_PATTERNS_Code.zip
Matches: "K:\Test\9781786466204-GO_DESIGN_PATTERNS_Code"

Rem Match 14: D:\Downloads\Books\9781786467171-MASTERING_OPENCV_3_SECOND_EDITION_Code.zip
Matches: "K:\Test\9781786467171-MASTERING_OPENCV_3_SECOND_EDITION_Code"

Rem Match 15: D:\Downloads\Books\9781787121706-MASTERING_C_MULTITHREADING_Code.zip
Matches: "K:\Test\9781787121706-MASTERING_C_MULTITHREADING_Code"

Rem Match 16: D:\Downloads\Books\9781787125445-MASTERING_BLOCKCHAIN_Code.zip
Matches: "K:\Test\9781787125445-MASTERING_BLOCKCHAIN_Code"

Rem Match 17: D:\Downloads\Books\9781787125643-GO_SYSTEMS_PROGRAMMING_Code.zip
Matches: "K:\Test\9781787125643-GO_SYSTEMS_PROGRAMMING_Code"

Rem Match 18: D:\Downloads\Books\9781787282049-PERL_6_DEEP_DIVE_Code.zip
Matches: "K:\Test\9781787282049-PERL_6_DEEP_DIVE_Code"

Rem Match 19: D:\Downloads\Books\9781788290142-MICROSOFT_POWER_BI_COOKBOOK_Code.zip
Matches: "K:\Test\9781788290142-MICROSOFT_POWER_BI_COOKBOOK_Code"

Rem Match 20: D:\Downloads\Books\9781788393850-ARCHITECTING_MODERN_JAVA_EE_APPLICATIONS_Code.zip
Matches: "K:\Test\9781788393850-ARCHITECTING_MODERN_JAVA_EE_APPLICATIONS_Code"

Rem Match 21: D:\Downloads\Books\9781788396646-DEVOPS_WITH_KUBERNETES_Code.zip
Matches: "K:\Test\9781788396646-DEVOPS_WITH_KUBERNETES_Code"

Rem Match 22: D:\Downloads\Books\Mastering Docker 2nd Edition_Code.zip
Matches: "K:\Test\Mastering Docker 2nd Edition_Code"

Rem Match 23: D:\Downloads\Books\Raspberry Pi Cookbook for Python Programmers - Code.zip
Matches: "K:\Test\Raspberry Pi Cookbook for Python Programmers - Code"


ArcDirMatcher.cmd after editing above output
Rem -- Replace 'Matches:' with 'rmdir /s /q' in a text editor,
Rem -- then rename the extension from '.txt' to '.cmd'
Rem -- and run it to remove folders.

Rem Match 1: D:\Downloads\Books\9781783551712-LEARNING_PYTHON_Code.zip
rmdir /s /q "K:\Test\9781783551712-LEARNING_PYTHON_Code"

Rem Match 2: D:\Downloads\Books\9781783552016-MASTERING_SOCIAL_MEDIA_MINING_WITH_PYTHON_Code.zip
rmdir /s /q "K:\Test\9781783552016-MASTERING_SOCIAL_MEDIA_MINING_WITH_PYTHON_Code"

Rem Match 3: D:\Downloads\Books\9781783555130-PYTHON_MACHINE_LEARNING_code.zip
rmdir /s /q "K:\Test\9781783555130-PYTHON_MACHINE_LEARNING_code"

Rem Match 4: D:\Downloads\Books\9781783980420-PYTHON_FOR_SECRET_AGENTS_code.zip
rmdir /s /q "K:\Test\9781783980420-PYTHON_FOR_SECRET_AGENTS_code"

Rem Match 5: D:\Downloads\Books\9781784393878-PANDAS_COOKBOOK_Code.zip
rmdir /s /q "K:\Test\9781784393878-PANDAS_COOKBOOK_Code"

Rem Match 6: D:\Downloads\Books\9781785280009-LINUX_DEVICE_DRIVERS_DEVELOPMENT_Code.zip
rmdir /s /q "K:\Test\9781785280009-LINUX_DEVICE_DRIVERS_DEVELOPMENT_Code"

Rem Match 7: D:\Downloads\Books\9781785281655-DOCKER_ON_WINDOWS_Code.zip
rmdir /s /q "K:\Test\9781785281655-DOCKER_ON_WINDOWS_Code"

Rem Match 8: D:\Downloads\Books\9781785289729-MASTERING_PYTHON_Code.zip
rmdir /s /q "K:\Test\9781785289729-MASTERING_PYTHON_Code"

Rem Match 9: D:\Downloads\Books\9781785883804-BAYESIAN_ANALYSIS_WITH_PYTHON_Code.zip
rmdir /s /q "K:\Test\9781785883804-BAYESIAN_ANALYSIS_WITH_PYTHON_Code"

Rem Match 10: D:\Downloads\Books\9781785885587-NODEJS_DESIGN_PATTERNS_SECOND_EDITION_Code.zip
rmdir /s /q "K:\Test\9781785885587-NODEJS_DESIGN_PATTERNS_SECOND_EDITION_Code"

Rem Match 11: D:\Downloads\Books\9781785889622-MACHINE_LEARNING_ALGORITHMS_Code.zip
rmdir /s /q "K:\Test\9781785889622-MACHINE_LEARNING_ALGORITHMS_Code"

Rem Match 12: D:\Downloads\Books\9781786462169-TENSORFLOW_MACHINE_LEARNING_COOKBOOK_Code.zip
rmdir /s /q "K:\Test\9781786462169-TENSORFLOW_MACHINE_LEARNING_COOKBOOK_Code"

Rem Match 13: D:\Downloads\Books\9781786466204-GO_DESIGN_PATTERNS_Code.zip
rmdir /s /q "K:\Test\9781786466204-GO_DESIGN_PATTERNS_Code"

Rem Match 14: D:\Downloads\Books\9781786467171-MASTERING_OPENCV_3_SECOND_EDITION_Code.zip
rmdir /s /q "K:\Test\9781786467171-MASTERING_OPENCV_3_SECOND_EDITION_Code"

Rem Match 15: D:\Downloads\Books\9781787121706-MASTERING_C_MULTITHREADING_Code.zip
rmdir /s /q "K:\Test\9781787121706-MASTERING_C_MULTITHREADING_Code"

Rem Match 16: D:\Downloads\Books\9781787125445-MASTERING_BLOCKCHAIN_Code.zip
rmdir /s /q "K:\Test\9781787125445-MASTERING_BLOCKCHAIN_Code"

Rem Match 17: D:\Downloads\Books\9781787125643-GO_SYSTEMS_PROGRAMMING_Code.zip
rmdir /s /q "K:\Test\9781787125643-GO_SYSTEMS_PROGRAMMING_Code"

Rem Match 18: D:\Downloads\Books\9781787282049-PERL_6_DEEP_DIVE_Code.zip
rmdir /s /q "K:\Test\9781787282049-PERL_6_DEEP_DIVE_Code"

Rem Match 19: D:\Downloads\Books\9781788290142-MICROSOFT_POWER_BI_COOKBOOK_Code.zip
rmdir /s /q "K:\Test\9781788290142-MICROSOFT_POWER_BI_COOKBOOK_Code"

Rem Match 20: D:\Downloads\Books\9781788393850-ARCHITECTING_MODERN_JAVA_EE_APPLICATIONS_Code.zip
rmdir /s /q "K:\Test\9781788393850-ARCHITECTING_MODERN_JAVA_EE_APPLICATIONS_Code"

Rem Match 21: D:\Downloads\Books\9781788396646-DEVOPS_WITH_KUBERNETES_Code.zip
rmdir /s /q "K:\Test\9781788396646-DEVOPS_WITH_KUBERNETES_Code"

Rem Match 22: D:\Downloads\Books\Mastering Docker 2nd Edition_Code.zip
rmdir /s /q "K:\Test\Mastering Docker 2nd Edition_Code"

Rem Match 23: D:\Downloads\Books\Raspberry Pi Cookbook for Python Programmers - Code.zip
rmdir /s /q "K:\Test\Raspberry Pi Cookbook for Python Programmers - Code"




Source, note the comments at line 113 and 114 if you want to expand the filetypes or make it recurse through the extracted folder tree:

Code: PowerShell [Select]
  1. <# This form was created using POSHGUI.com  a free online gui designer for PowerShell
  2. .NAME
  3.     ArcDirMatcher.ps1
  4. #>
  5.  
  6. #region begin GUI{
  7.  
  8. Add-Type -AssemblyName System.Windows.Forms
  9. [System.Windows.Forms.Application]::EnableVisualStyles()
  10.  
  11. $Form                            = New-Object system.Windows.Forms.Form
  12. $Form.ClientSize                 = '400,291'
  13. $Form.text                       = "ArcDirMatcher"
  14. $Form.TopMost                    = $false
  15.  
  16. $TextBox1                        = New-Object system.Windows.Forms.TextBox
  17. $TextBox1.multiline              = $false
  18. $TextBox1.width                  = 277
  19. $TextBox1.height                 = 20
  20. $TextBox1.location               = New-Object System.Drawing.Point(21,63)
  21. $TextBox1.Font                   = 'Microsoft Sans Serif,17'
  22.  
  23. $Button1                         = New-Object system.Windows.Forms.Button
  24. $Button1.text                    = "..."
  25. $Button1.width                   = 60
  26. $Button1.height                  = 30
  27. $Button1.location                = New-Object System.Drawing.Point(316,63)
  28. $Button1.Font                    = 'Microsoft Sans Serif,10'
  29.  
  30. $Label1                          = New-Object system.Windows.Forms.Label
  31. $Label1.text                     = "Select folder with archives (recursive):"
  32. $Label1.AutoSize                 = $true
  33. $Label1.width                    = 25
  34. $Label1.height                   = 10
  35. $Label1.location                 = New-Object System.Drawing.Point(21,34)
  36. $Label1.Font                     = 'Microsoft Sans Serif,12'
  37.  
  38. $Label2                          = New-Object system.Windows.Forms.Label
  39. $Label2.text                     = "Select path of extracted folders (non-recursive):"
  40. $Label2.AutoSize                 = $true
  41. $Label2.width                    = 25
  42. $Label2.height                   = 10
  43. $Label2.location                 = New-Object System.Drawing.Point(21,130)
  44. $Label2.Font                     = 'Microsoft Sans Serif,12'
  45.  
  46. $TextBox2                        = New-Object system.Windows.Forms.TextBox
  47. $TextBox2.multiline              = $false
  48. $TextBox2.width                  = 273
  49. $TextBox2.height                 = 20
  50. $TextBox2.location               = New-Object System.Drawing.Point(21,161)
  51. $TextBox2.Font                   = 'Microsoft Sans Serif,17'
  52.  
  53. $Button2                         = New-Object system.Windows.Forms.Button
  54. $Button2.text                    = "..."
  55. $Button2.width                   = 60
  56. $Button2.height                  = 30
  57. $Button2.location                = New-Object System.Drawing.Point(316,161)
  58. $Button2.Font                    = 'Microsoft Sans Serif,10'
  59.  
  60. $Button3                         = New-Object system.Windows.Forms.Button
  61. $Button3.text                    = "Start"
  62. $Button3.width                   = 90
  63. $Button3.height                  = 30
  64. $Button3.location                = New-Object System.Drawing.Point(155,230)
  65. $Button3.Font                    = 'Microsoft Sans Serif,12'
  66.  
  67. $Form.controls.AddRange(@($TextBox1,$Button1,$Label1,$Label2,$TextBox2,$Button2,$Button3))
  68.  
  69. $Button1.Add_Click({
  70.   $objForm = New-Object System.Windows.Forms.FolderBrowserDialog
  71.   $objForm.Description = "Select folder containing archives"
  72.   $objForm.SelectedPath = [System.Environment+SpecialFolder]'MyComputer'
  73.   $objForm.ShowNewFolderButton = $false
  74.   $result = $objForm.ShowDialog()
  75.   if ($result -eq "OK") {
  76.     $TextBox1.Text = $objForm.SelectedPath
  77.   } else {
  78.     $TextBox1.Text = ""
  79.   }
  80. })
  81.  
  82. $Button2.Add_Click({
  83.   $objForm = New-Object System.Windows.Forms.FolderBrowserDialog
  84.   $objForm.Description = "Select folder containing extracted archives"
  85.   $objForm.SelectedPath = [System.Environment+SpecialFolder]'MyComputer'
  86.   $objForm.ShowNewFolderButton = $false
  87.   $result = $objForm.ShowDialog()
  88.   if ($result -eq "OK") {
  89.     $TextBox2.Text = $objForm.SelectedPath
  90.   } else {
  91.     $TextBox2.Text = ""
  92.   }
  93. })
  94.  
  95. $Button3.Add_Click({
  96.   if (($TextBox2.Text -ne "") -and ($TextBox1.Text -ne "")) {
  97.     Collect-Archives $TextBox2.Text $TextBox1.Text
  98.   }
  99. })
  100.  
  101. #endregion events }
  102.  
  103. #endregion GUI }
  104.  
  105. #Write your logic code here
  106.  
  107. Function Collect-Archives {
  108.   param (
  109.     [string]$path,
  110.     [string]$drive
  111.   )
  112.   $Button3.Text = 'Working'
  113.   $archives = Get-ChildItem -Path "$($drive)\*" -Recurse -Include *.arc,*.arj,*.zip,*.rar,*.7z # add more extensions if necessary
  114.   $folders = Get-ChildItem -Path $path -Directory # add -Recurse if you want to recurse through the folders also
  115.   $total = 0
  116.   Out-File -FilePath ($drive + '\ArcDirMatcher.txt') -InputObject "Rem -- Replace 'Matches:' with 'rmdir /s /q' in a text editor,`r`nRem -- then rename the extension from '.txt' to '.cmd'`r`nRem -- and run it to remove folders.`r`n" -Encoding utf8
  117.   for ($i = 0; $i -lt $archives.Count; $i++) {
  118.     $folderName = ([io.path]::GetFileNameWithoutExtension($archives[$i]))
  119.     for ($j = 0; $j -lt $folders.Count; $j++) {
  120.       if ((Split-Path $folders[$j] -Leaf) -eq $folderName) {
  121.         $total += 1
  122.         $text = "Rem Match $($total): $($archives[$i])`r`nMatches: `"$($folders[$j].FullName)`"`r`n"
  123.         Out-File -FilePath ($drive + '\ArcDirMatcher.txt') -InputObject $text -Append -Encoding utf8
  124.       }
  125.     }
  126.   }
  127.   $Button3.Text = 'Start'
  128.   if ($total -ne 0) {
  129.     Invoke-Item ($drive + '\ArcDirMatcher.txt')
  130.   }
  131. }
  132.  
  133. [void]$Form.ShowDialog()

Run it from the shortcut, edit the shortcut Target if it's not in the same folder as the script.

Code: Text [Select]
  1. %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe -sta -noprofile -executionpolicy bypass -File "ArcDirMatcher.ps1"
542
Android Apps / Re: android app keyboard
« Last post by 4wd on January 18, 2019, 08:57 PM »
I cant yet figure out how to easily change (already chosen) language keyboards in it. This is very intuitive and clear in Gboard (long press on spacebar).

Interesting, didn't know that - my GBoard has a world symbol download.png next the space bar: tap it and it cycles through whatever keyboards you have; long press and it shows a selection list.

Of course, that means I can inadvertently tap it instead of the space bar and find myself typing in Cyrillic  ;D
543
Found Deals and Discounts / Free I.T. Courses - [PSA]
« Last post by 4wd on January 18, 2019, 08:49 PM »
This is more a Public Service Announcement in case there are those who don't know about MOOCs, (Massively Open Online Courses), or just want to fill in a few hours each week learning something new.

Prompted by this post on OzBargain: Free - 690 Online Courses in IT

After 843 Udemy courses comes 690 free university level courses. The courses are free but you will need to pay for the certificate if you want one.

There are -
179 beginner level courses
376 intermediate level courses
135 advanced level courses

These are courses from universities such as Harvard, Standford and University of London.

This took me over an hour to prepare so I hope all the links are right!

Enjoy learning!

(From a couple of weeks ago: Free - 843 Courses in Technology @ Udemy - Some no longer free now, some outdated and thus free.)

OzB also has a Wiki page for MOOCs: Free online courses, Provided by Universities - MOOC's
544
Post New Requests Here / Re: gpa calculator
« Last post by 4wd on January 17, 2019, 02:31 PM »
Standards are great, there's so many to pick from.

Makes me glad I went through the educational system before all this score this, score that malarkey started.
545
Post New Requests Here / Re: gpa calculator
« Last post by 4wd on January 17, 2019, 05:23 AM »
Isn't this going to depend on what country you're in, (and quite possibly state/region)?

eg. Scholaro GPA Calculator
546
Living Room / Re: Interesting "stuff"
« Last post by 4wd on January 16, 2019, 05:05 PM »
@Arizona Hot: I dunno. "Heads-up driving" would seem to be a bit passé if not a contradiction in terms, in this day and age of txting-whilst-U-drive.  :tellme:

In this day and age you can SMS via voice, no need to look down to see what your fingers are typing - you can completely screw up an SMS without even touching the phone.
547
Non-Windows Software / Re: Android 6.0 tablet recent windows close all?
« Last post by 4wd on January 16, 2019, 04:20 PM »
I had a similarly frustrating issue with the Moto phone I just got rid of. No matter how many Apps were listed the close all button didn't show up until I got down to the last one.

Interesting, my Moto G5+ shows CLEAR ALL at the top of the list all the time, unfortunately because the most recent are always shown at the bottom you need to scroll to the top to see it.

@Miles: Old Tesco HUDL v1 with Android 4.2.2 can only clear one at a time here.

You can add a Clear All function but it'll require root and the Xposed framework.
548
Post New Requests Here / Re: Folder Organizer/Sorter
« Last post by 4wd on January 14, 2019, 06:24 PM »
He didn't seem to mean the files being in the directory, which was why I was asking.

... scan for files with a specific extension in/out of a compressed folder ...

I took it to mean files within the directory and archives.
549
OK, so if I've got this right, maybe, the full path is split into two parts only to be acted upon:

  • \test\test2\One\two\three\ozorroee\
  • ofile.text

?

Starting with the current version, more or less.

With -dr, the whole path is seen as one string (with or without the file's extension  ;)), regex_replace() is applied to it.
Without -d, only the second part (= the file name, with or without the file's extension  ;)) will be processed.

(Stop modifying your postings while I reply to them.  :mad: :-[)

OK, now it makes sense ... was completely at odds with every other rename program I've used  ;D
550
Surprise me:

Surprise!

2019-01-15 10_24_57-K__test.png

remv -sdrvv "o(.+)e(.+)" d$1$2 test
2019-01-15 10_27_21-K__test.png


remv -sdrvv "o(?:.+)e(.+)" d$1$2 test
Code: Text [Select]
  1. K:\>remv -sdrvv "o(?:.+)e(.+)" d$1$2 test
  2.  Renaming           'test\test2\One\two\three\ozorroee\ofile.txt' to 'test\test2\One\twd.txt' ...
  3. Successfully renamed test\test2\One\two\three\ozorroee\ofile.txt to test\test2\One\twd.txt.
  4.  Renaming           'test\test2\One\two\three\ozorroee' to 'test\test2\One\twde' ...
  5. Successfully renamed test\test2\One\two\three\ozorroee to test\test2\One\twde.
  6.  Processed        'test\test2\One\two\three' ...
  7.  Skipping         'test\test2\One\two' ...
  8.  Skipping         'test\test2\One' ...
  9.  Skipping         'test\test2' ...
  10.  [STATS] Renamed 2 files and directories (0 failed, 4 skipped).

2019-01-15 10_48_53-K__test.png

Or something.  :huh:

 :P

OK, so if I've got this right, maybe, the full path is split into two parts only to be acted upon:

  • \test\test2\One\two\three\ozorroee\
  • ofile.text

?
Pages: prev1 ... 17 18 19 20 21 [22] 23 24 25 26 27 ... 225next