topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Thursday March 28, 2024, 4:12 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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - AbteriX [ switch to compact view ]

Pages: prev1 [2] 3 4 5 6 7 ... 46next
26
Yes. For me is solved.

And how did you solve your issue?
Which tool did you used? Which command... e.t.c ?
And, were there double spaces between the single words?





 

27
And now, how did this current challenge ended up Contro?


Would be kind of you to give any, positive or negative, feedback if your problem is solved or not.





 

28
As I told you already, nobody can know which space to delete and which not.





 

29
Congratulations and Kudos, Hugo.

Well made tool. I think I will use this a little bit longer.

Some IDEAs I have found while using it, if I may:



Suggestion #1

Options > Tools
Tool to open file: path\to\notepad2.exe "%1"
Tool to open folder: path\to\filemanager.exe "%1" /A /B /c

Context menu
Open file with own tool
Open folder with own tool



Suggestion #2
Add option to use ESC key to exit the application



Suggestion #3
If easy possible, add option to limited search deep (fine for slow networkdrive)
For example, I know that my own files are in the three top level folders only,
but the folder may contain installation sources also with several sub folders, which are needles to include into the search.


Suggestion #4
If you have some free time, add keyboard shortcuts
Alt+N = Name pattern box
Alt+F = folders
Alt+P = Pattern restrictions
Alt+D = Date restrictions
Alt+S = Size restrictions
Alt+C = Content restrictions
Alt+R = Filter results

Alt+N and Alt+P shortcuts from menu could be changed to use CTRL+Alt+ instead?
Also I would miss a "Copy Path ONLY from result" if I didn't would know workarounds.


Idea #5
Double click on editable box to enable them and check the checkmark box,
instead of checking the checkmark box first.


Idea #6
Of course, history for editable boxes (last 25 recently inserted contents)


#7
Content restrictions:
- RegEx support (also fine for -OR-: abc|def|xyz)
- "Whole word" check box


#8
Date restrictions
Drop-Down-Menu: Last [ 3 |v] days


#9
Perhaps a "collect results" feature? Like "[X] Do not clear result on new search"?
Perhaps useful for finding duplicate files



 

30
Sort lines of a txt file by lenght of the string

With pure JavaScript and a TextEditor supporting WSH scripting.

NewText = (OldText().split("\n")).sort(function(a,b){return b.length-a.length}).join('\n');



PSPad
//X:\PSPad\Script\JScript\Sort.js
module_name = "StefanSort";
module_ver = "0.001a";
function Init(){
  addMenuItem("Sort Random"                        ,"Sort", "StefanSortRandom");
  addMenuItem("Sort by line length (Long to short)","Sort", "StefanSortByLineLengthDown");
  addMenuItem("Sort by line length (Short to Long)","Sort", "StefanSortByLineLengthUp");
}
function StefanSortRandom() {
  var objEditor = newEditor();
  objEditor.assignActiveEditor();
  objEditor.Text((objEditor.Text().split("\n")).sort(function(){return .5 - Math.random()}).join("\n").slice(0, -1));
}
function StefanSortByLineLengthDown() {
  var objEditor = newEditor();
  objEditor.assignActiveEditor();
  objEditor.Text((objEditor.Text().split("\n")).sort(function(a,b){return b.length-a.length}).join('\n').slice(0, -1));
}
function StefanSortByLineLengthUp() {
  var objEditor = newEditor();
  objEditor.assignActiveEditor();
  objEditor.Text((objEditor.Text().split("\n")).sort(function(b,a){return b.length-a.length}).join('\n').slice(0, -1));
}



EmEditor:
document.selection.text = ((document.selection.text.split("\n")).sort(function(a,b){return b.length-a.length})).join('\n');



 

31
I checked out PSPad and did the following simple things.
existing text
start recording macro
do a find and replace
stop macro
save macro
(same to .pme ?)
then back to macro - edit macro - empty

Just to be clear, PSPad was not meant as example of an good macro recorder  :)
in fact, PSPad macro didn't record such Find&Replace dialogs.

My PSPad post was to provide you a VBScript to perform your task,... I have now added an how-to use above:
Store that code as MultiReplace.vbs in "...\PSPad\Script\VBscript\" folder.
In PSPad run menu "Scripts\Recompile", next see new entry "Multiple Replace on downloaded text".


PSPad is free an have Scripting support, but even better for my use and with
an far better macro recorder is EmEditor, which costs $40 (or $150 with more than 1 year update service)


.

32
A freeware Text Editor is PSPad, which can be scripted with VisualBasicScript (VBS)

Store that code as MultiReplace.vbs in "...\PSPad\Script\VBscript\" folder.
In PSPad run menu "Scripts\Recompile", next see new entry "Multiple Replace on downloaded text".


Quick&Dirty Example:
'*******************************************************************************
' Filename : X\PSPad\Script\VBscript\MultiReplace.vbs
' Description :
' Created :
' Created by :
' Note   :
' You may distribute this script freely, but please keep this header intact.
'*******************************************************************************
'OPTION EXPLICIT
'ON ERROR RESUME NEXT

Sub Init
        '//addMenuItem MODULE_Title, "sub menu" , MODULE_NAME_to_run ,"ctrl+shift+alt+m"
        addMenuItem "Multiple Replace on downloaded text", "" , "Main"
End Sub
'*******************************************************************************
Sub Main()
        Set editor = newEditor()
        editor.assignActiveEditor()
        strInputSel = editor.selText()


        strOut = strInputSel     
        '//==================================================== === START User Settings ===
         '//   strOut = runRegExpReplace(strOut, "yourSearchPattern" , "yourReplacement")
         strOut = runRegExpReplace(strOut, "X", "Y")
         strOut = runRegExpReplace(strOut, "-", "....")
         strOut = runRegExpReplace(strOut, "this", "that")
         strOut = runRegExpReplace(strOut, " the the ", " the ")
         '.... and so on
        '//==================================================== === END of User Settings ===

         '//write back:
        editor.selText strOut
        Set editor = Nothing
End Sub


Function runRegExpReplace(haystack, Pattern, newtext)
    Set regEx = New RegExp
    If Pattern = "" Then
        runRegExpReplace = haystack
        Exit Function
    End If
    regEx.Pattern        = Pattern
    regEx.IgnoreCase = TRUE
    regEx.Global          = TRUE
    regEx.Multiline      = TRUE
    runRegExpReplace = regEx.Replace(haystack, newtext)
End Function





.

33
Already good answers, here are some more....

You could use EmEditor Text Editor
- you can record a search&replace in a macro, edit that macro by copying the command line, and run this.
https://www.emeditor...y/scriptable-macros/
- you can also use the search&replace dialog box and enable Batch-Replace:
https://www.emeditor...tures/batch-replace/

You could use PowerShell (new WindowsTM batch tool)
Command line usage:
(Get-Content c:\temp\test.txt).replace('[MYID]', 'MyValue') | Set-Content c:\temp\test.txt
http://stackoverflow...file-with-powershell
Script usage:
$current=(Get-Content c:\temp\test.txt)
$OUT=$current.replace('[MYID]', 'MyValue')
$OUT=$OUT.replace('XXX', 'ABC')
$OUT | Set-Content c:\temp\test.txt

You could use AutoHotkey:
FileRead, varOrigin, test.csv
StringReplace, varOUT, varOrigin, xxx, ABC, All
StringReplace, varOUT, varOUT, YYY, DEF, All
FileDelete, test.csv
FileAppend, %varOUT%, test.csv
https://autohotkey.c...eplace-in-text-file/

You could use MS-Word with VBA
- start record macro
- call search&replace , do your first replacement
- stop recording
- click Macros > Modify
- copy the replacement block of code and modify to your second replacement need
- save and execute
There are more elegent ways with ARRAYs and FOR EACH in Array DO... but for the start that should work for you too.

MS-Word supports Wildcards: http://word.mvps.org...l/UsingWildcards.htm

Within a macro, you can utilize VBS/VBA RegEx (Set regExp = CreateObject("vbscript.regexp"))
http://superuser.com...replace-in-word-2010
http://stackoverflow...alternation-operator

Best way is to copy a own (found) function into the macro code and call that function for the replacement work:
http://bytecomb.com/...-expressions-in-vba/
>>> RxReplace VBA Function
Function RxReplace( SourceString, Pattern , ReplacePattern , IgnoreCase , MultiLine , MatchGlobal )


Just some ideas as starting point....


 

34
Coding Snacks / Re: Drop file to rename it according to list of names
« on: January 19, 2017, 05:34 AM »
Maybe this helps:


I have a folder with files and a spreadsheet with two columns with a list of names.
Current names on the left column (A), the new names on the right column (B).
Old name.txt   |   New wanted.txt
Alter Name.TXT   |   Neuer Name.TXT
Current name.txt   |   Target Name.txt



Use third column (C) and enter a formula in C1:

=" Ren " & """" & A1 & """  " & """" & B1 &""""

After pressing ENTER key you will get:

Old name.txt   |   New wanted.txt    |   Ren "Old name.txt"  "New wanted.txt"
Alter Name.TXT   |   Neuer Name.TXT   
Current name.txt   |   Target Name.txt   




Now select C1 and double click at the black square at the bottom right of that cell.
The formula is copied down.

Awaited Result:

Old name.txt   |   New wanted.txt    |   Ren "Old name.txt"  "New wanted.txt"
Alter Name.TXT   |   Neuer Name.TXT    |   Ren "Alter Name.TXT"  "Neuer Name.TXT"
Current name.txt   |   Target Name.txt    |   Ren "Current name.txt"  "Target Name.txt"




At last, select whole C-column, paste to a New Textfile.txt.
Open that file (add '@ECHO OFF' as new first line) and see if all went fine.
Change extension to .CMD and run on a copy of your real files (or have a backup).

DOS command REN will try to find file with name on the left, and if found, rename with name on the right.



---------------------------------------RenameBatch.CMD
@ECHO OFF

Ren "Old name.txt"  "New wanted.txt"
Ren "Alter Name.TXT"  "Neuer Name.TXT"
Ren "Current name.txt"  "Target Name.txt"

PAUSE
---------------------------------------



 

35
General Software Discussion / Re: Total Commander v9.00 Public Betas
« on: November 30, 2016, 03:14 PM »
 
A developer with serious ego problems, I might add.

if you want to stir the shit like that, please do it elsewhere


'elsewhere' he's got banned already.







36
Ha!  8)

While jumping from vid to vid, I saw this  :D




37
Post New Requests Here / Re: Tiny Barebones Editor Needed
« on: July 08, 2016, 02:27 AM »
Use WordPad.

See top title bar, for the [v]-menu, to minimize the ribbon bar.


WordPad-Ribbonbar.png


 

38
General Software Discussion / Total Commander v9.00 Public Betas
« on: June 09, 2016, 02:12 PM »
Total Commander 9.0 beta 1 is available now!

For more information visit http://ghisler.ch/board/index.php
Total Commander (Deutsch)
Total Commander (English)
Total Commander (Français)



e.g. English: http://ghisler.ch/bo...iewtopic.php?t=44181

Posted: Wed Jun 08, 2016 18:33    Post subject: Total Commander 9.0 beta 1 available

Total Commander 9.0 beta 1 is available now!
You can download it from www.ghisler.com
This is a public pre-release version! Please be careful!

Here is a list of the most important additions:
..
.....
........


------------------------------------------------------------------


Lot of bugs in beta1. Best wait for beta 2 or even 3.



------------------------------------------------------------------

Additional info:
TC9 beta installation (side-by-side with current version) ?
http://ghisler.ch/bo...iewtopic.php?t=44242

------------------------------------------------------------------

 

39
Rube Goldberg machine with marbles and magnets.

WOW, great find! Fun to watch. So many to see (I have to view it again several times to understand what happens there all. Tomorrow.)

Arizona Hot's is next to watch. But for today it's quitting time here in Germany.


Thanks for sharing.  :Thmbsup:

40
Thanks wraith808,

Alternatives are welcome too.
I will definitely check out that ShowUI thingy. thx

 
Sooner or later I will write my GUIs in plain text too.
But for now, or for greater work, I would like to have a drag&drop surface, like I use "SmartGUI Creator" for AHK GUIs.


Till now I have e.g. found "Powershell Form Builder"
at https://gallery.tech..._content=buffere2fff
a veeery lightweight tool (ps1 script) for visual GUI design. But without many features or intuitive workflow.
FormsMaker-small.jpg



 

41
Sorry for posting here, but I was on the search for closed, members only forum.
Please feel free to move this post if needed.


I am on the search for the SAPIEN free PrimalForms Community Edition, which is no longer available officially.

https://www.sapien.c...imalforms-ce-update/
https://www.sapien.c...-community-tools-go/
https://www.sapien.c...viewtopic.php?t=7735 -- Mon May 26, 2014 12:49 pm -- All community edition applications have been discontinued.

This is a tool to build GUI code for PowerShell scripts.



Please PM me if you have the installation sources for me, or if you know about a reliable clean download source.


Thanks in advance.

42
 

Informative and funny, the test of the worlds best mini survival kit:

All you need alone out in the wilderness....









 

43
Skwire, unless you or someone else wants to add anything, this one looks solved.

Anyway  :D, here a script, done with PowerShell, just for fun and because PoSh is there already.

(Tested with PoSh v4, but forced to behave like v2. Write $PSVersionTable to get your version)



I have 600,000 midi files, in a single folder. 
I'd like to move/organize into folders.  100 midi files per new folder.  Sorted by size of files.
So, the smallest 100 midi files will go into, say, folder 0001.
Second 100 smallest midi files will go into folder 0002.
Etc.
Will need to create all the required folders.


With PowerShell:


Open a PowerShell console in your "single folder" with the  "600,000 midi files".


---

If wanted, Create some test files (with random names and different size) to test my script:
Code: PowerShell [Select]
  1. 1..200|%{ fsutil file createnew ([System.IO.Path]::GetRandomFileName()) $_ | Out-Null}

---

Move every ten files (sorted by size) to a new created sub folder:
(Change "-lt 10" to the wanted amount, like "-lt 100")

Code: PowerShell [Select]
  1. ls|?{!$_.PSIsContainer}|sort length|%{$C=0;$I=1}{$C++;if($C-lt10){mkdir $I -ea 0|Out-Null;Move $_ $I}else{Move $_ $I;$C=0;$I++}}


---

The same Move-script, but as long version, with official command names and such:
Code: PowerShell [Select]
  1. # DIR folder:
  2. Get-ChildItem |
  3. # Files only, no directories:
  4. Where-Object{ -not $_.PSIsContainer} |
  5. # Sort by file size:
  6. Sort-Object -Property length |
  7. # For Each File from DIR Do:
  8. ForEach-Object
  9.     # One time, common for all files, at the beginning, set counter:
  10.     -Begin{ $FileCount=0; $LotFolder=1 }
  11.     # For each individual file:
  12.     -Process{ $FileCount++;
  13.             # break/reset at every max count, here 10:
  14.             if($FileCount -lt 10){
  15.                 # Create sub folder, suppress error message on existing folder (ErrorAction), suppress success message too (>NUL):
  16.                 New-Item -path $LotFolder -ItemType directory -ErrorAction SilentlyContinue|Out-Null;
  17.                 # Move current file to sub folder:
  18.                 Move $_ $LotFolder}
  19.             else{
  20.                 # On last file in set, Move current file to sub folder and adjust counter:
  21.                 Move $_ $LotFolder; $FileCount=0; $LotFolder++}
  22.             }
  23.     # One time, common for all files, at the very end:
  24.     -End {"Done!"}





.

44
fSekrit / Re: Open-sourcing fSekrit
« on: February 09, 2016, 01:52 AM »
Kudos for going open source  :up:


I can imaging what a big step that is. ( showingmycode? )


That's for you :>



  

45
Old computers did it better!







And from there I went to

Can MS-DOS 6.22 (1994) Replace Windows 7?
The mouse is working!!  :Thmbsup: https://youtu.be/j-74qPWgoBI?t=1553


And, do u remember? (sic!) Installing WindowsTM v1, v2, v3, 95 ... Win8
Upgrading From Windows 1.0 to Windows 8 On Actual Hardware






 

46
Easy Screencast Recorder / ESR: Pause Capture / No Tray-Icon
« on: January 26, 2016, 02:06 AM »
Hi Jesse,

some more ideas from live test:

- option to pause a screen capture, and continue after a while.  Could be an button on the ESR window.

- option to not display the taskbar icon, the tray icon is enough (for me).


CU

47
N.A.N.Y. 2016 / Re: NANY 2016 Pledge/Alpha: Mouser's Media Browser
« on: January 15, 2016, 10:09 AM »
Feature wish: slideshow with adjustable speed on the fly, like DVD-movie viewer


[Start slideshow]

| Speed of show next image:
| Slow (30 second) -----------(o)----------------------------- Fast (1 second) |

| Fast Backward [ 50] files || Fast Forward [ 10] files |


  8)

48
First real test, I would like to have:

- hotkey to toggle suspend / resume capture

- Related to "Capture Rules > this many pixels: [1000]"
show me the resolution of my monitor(s), so I know how many 1000 pixels are in real (compared to e.g. 786.432 pixels)
And / Or use a percent approach: this many percent of total pixels: [5 ] %
Maybe a combination: current approach "this many pixels: [1000]" plus something like "That are 0,03 % of your total res"


- misc options > Sound:
Would be nice to have playing a sound perhaps five times, just to know it works,.... then be silent.
[_] Play sound on each.....
[X] Play sound first five times


- On start > tray bubble:
Please an option to disable this feature.


Explanation: I on my own don't want to have this tool running all the day, but only e.g. on installing a new application to monitor the steps.


What do you think?

49
Living Room / Re: HAPPY NEW YEAR 2016
« on: January 01, 2016, 04:33 AM »
Happy new year. Thanks for a fabulous community




 

50
Found Deals and Discounts / Free WinX DVD Copy Pro 2015/2016
« on: December 31, 2015, 05:45 AM »
Giveaway: WinX DVD Copy Pro
● 1:1 Clone DVD to DVD Disc; copy DVD to ISO image, MPEG file and folder, etc.
● Support Disney's Fake, severely scratched DVDs and Sony ARccOS bad sector.
● Mount DVD ISO image and burn ISO image or video folder to DVD disc.
Only valid until Jan.20 2016
--------------------------------------------------------------
Product Name: WinX DVD Copy Pro
License Code: BR-aaaaaaaa-bbbbbb (example)
PS: Activate license code before Jan.12,2015.  No free upgrade to the future version.
Want to enjoy lifetime free upgrade of this software? Buy Now, you can enjoy 60% off.
https://secure.avang...amp;QTY=1&CART=2
---------------------------------------------------------------

+

Popular DVD Backup Solution  70% OFF
- WinX DVD Backup Software Pack
--     Pack with WinX DVD Ripper Platinum
-- --     Rip any DVDs to any video formats and devices.
--     And WinX DVD Copy Pro
-- --     Make 1:1 DVD backup. 9 DVD copy modes.
Was: $109.90, now 26 for one PC, 36 for three.

+

- WinX 2016 Holiday Video Pack (4-In-One)  80% OFF
-- DVD Ripper Platinum
-- -- Rip DVD to Any Videos.
-- DVD Copy Pro
-- -- Make 1:1 DVD Backup.
-- HD Video Converter Deluxe
-- -- Download & Convert Online Videos.
++ Gift: DVD HD Video Player Software
All-in-one pack including Digiarty's best software which can help you easily clone/rip/burn any DVDs,
download any videos from 300+ online video sites, convert between any videos and edit videos, etc.
Get the Pack today, enjoy holiday gift, 30-day money back guarantee and lifetime free upgrade.
Was: $159.85, now 31 for one PC, 40 for three.



http://www.winxdvd.c...dows-10-dvd-copy.htm

 

Pages: prev1 [2] 3 4 5 6 7 ... 46next