topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Tuesday April 13, 2021, 11:46 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 - highend01 [ switch to compact view ]

Pages: prev1 [2] 3 4 5 6 7 8next
26
@SETLOCAL EnableDelayedExpansion
@ECHO OFF

SET Max=10
SET Src=R:\a
SET Dst=R:\b

IF EXIST "%Src%" (
    IF EXIST "%Dst%" (
        SET /a Count = 1
        FOR /D %%I IN ("%Src%\*") DO (
            MOVE /Y "%%I" "%Dst%" >NUL 2>NUL
            IF !Count! == %Max% GOTO :EOF
            SET /a Count += 1
        )
    )
)

27
Write an .ahk script (and compile it), that removes all hyphens and line breaks with a single regex replace?

#NoEnv
#SingleInstance Force

^+-:: ; Ctrl+Shift+-
Clipboard := RegExReplace(Clipboard, "(-+)?\r?\n")

28
Coding Snacks / Re: contextmenu addon feature (alike LevelZap)
« on: March 08, 2019, 08:07 AM »
Total Commander > search > search for TTF ; when found > feed to listbox > select all > move to 'dir'
What an effort...

XYplorer: Right click the folder, from the context menu: "Flatten folder", done...

29
A minor update (fixed a problem with the prune button (disabled or not when no results are found) and with the height of the string + button gadgets at the top)...


30
This version can "prune" (delete only the files with the smallest size and keep the one with the largest size) for each found folder...

Apart from that, the window is now resizable, and System Volume Information and $RECYCLE.BIN folders are now left out by default...

Use with care, you aren't asked if you're sure when you click the prune button^^
When the pruning is done, a log with all deleted files is copied to clipboard automatically...

31
Try this...

No threading for the scan, Cancel button is therefore useless atm...

32
Living Room / Re: Is there any compact portable browser?
« on: February 26, 2019, 02:58 PM »
How about a HTML 5 browser with a sporting size of 1,6 MB?

Sure, limited use (no tabs currently) but find a smaller one...

https://www.radsix.com/

33
Have you done a search?
Rofl, seriously?

34
N.A.N.Y. 2019 / Re: NANY 2019 - DblEscClose
« on: November 30, 2018, 10:31 AM »
Windows Server 2012 R2 U3 x64

After starting it, on the first press of {ESC} the application fails (and exits) with:
---------------------------
DblEscClose
---------------------------
Run time error  14
at line  52
---------------------------
OK   
---------------------------


35
Finished Programs / Re: DONE: clean the marked text
« on: October 09, 2018, 04:39 AM »
AHK doesn't need to be installed to be able to compile a script with it. Just use the current .zip: https://autohotkey.com/download/ahk.zip

36
Finished Programs / Re: DONE: clean the marked text
« on: October 09, 2018, 04:20 AM »
AHK (compile it, place it in start, use it's shortcut when a text with underscores is in the clipboard):

#NoEnv
#SingleInstance Force

^+-:: ; Ctrl+Shift+- = Ctrl+_
Clipboard := RegExReplace(Clipboard, "[_]+", " ")


37
Finished Programs / Re: SOLVED: Quick PowerShell Question
« on: October 03, 2018, 02:14 AM »
The answer is in the documentation?
https://docs.microso...em?view=powershell-6

38
Finished Programs / Re: DONE: Tally folder contents by file date
« on: September 26, 2018, 04:07 AM »
My 2 cents...

TallyFiles.exe "path_1" "path_2" "path_X" [/fmt="yyyy-mm-dd" /date="c"]

- No dependencies
- It allows multiple paths in one call. If they contain spaces, double quotes are a necessity!
- Environment variables in paths are supported, e.g. "%windir%\Fonts"
- /fmt and /date are both optional (and can be used independently from each other)
- It should be clear that the same /fmt and /date values are used for all paths^^
- /fmt allows these elements:
  yyyy - 4 digit year
  yy   - 2 digit year
  mm   - 2 digit month
  dd   - 2 digit day
  hh   - 2 digit hour
  ii   - 2 digit minute
  ss   - 2 digit second
  The default is "yyyy-mm-dd"
- /date can be "c", "m" or "a" where "c" is the default

E.g.:
TallyFiles.exe "%windir%\Fonts"
will write a file named "Fonts.txt" into TallFiles.exe's location (in ascii format) with the creation date (sort method: ascending)

TallyFiles.exe "%windir%\Fonts" /date="m"
The same as above, this time with modified dates

etc.

The attachment contains a x86 and a x64 version...

39
Coding Snack Guidelines / Re: Simple logon-logoff timekeeper
« on: September 08, 2018, 03:13 PM »
Something like this?

Date and time fields are populated with the current time when the application is started
In and out buttons write to a file named "log.csv" (UTF-8, no BOM) in the SAME directory of the .exe file
(so don't put this in a UAC protected folder if you don't want to start it with admin permissions...)

Pressing {ESC} quits the application...

Entries look like this:
in/out,mm/dd/yyyy,hh:mm:ss
Example:
in,09/08/2018,22:05:29
out,09/08/2018,22:06:14

This should be easily importable into Excel...

40
Why don't you try to accomplish something on your own (like... forever)?

That would actually be a real improvement...

41
Nobody suggested that you make an answer public (while I can only hope that people finally stop to support laziness) *sigh*


42
I had the time to improve my version (a tiny bit)...

It now creates a log file (in %TEMP%) with the files that have been deleted and
automatically opens it with the associated application afterwards

It should be about 10-20 times faster than the old version (on fast hardware like SSDs)
because of better designed structures and ways to find the largest file...

43
Just write one yourself (and don't forget to make it public afterwards)...

AutoIt, AutoHotkey, PureBasic, etc., etc., etc.

44
Living Room / Re: Do Not Buy a Smartwatch Right Now
« on: August 15, 2018, 03:37 AM »
Regarding the Amazfit BIP,

mine (I do not use notifications, gps tracking, etc., only the step monitor + sleep surveillance) lasts a sporting 100+ days with one charge...

Yeah, really, no joke :Thmbsup:

45
Try the attached file (with some testdata folders first!)

VT: https://www.virustot...analysis/1534240206/

Works fine here...

46
Got it. Thanks a lot, ayryq!

47
I'm currently migrating from PostBox to The Bat so I would be glad to get that key...

Regards,
highend

48
This one does it for all files in a folder (not recursively)...

Accepts one parameter, the foldername (put it in quotes if it contains spaces, full path required)!

It is a command line app, the return values are the following:
0 = Everything went fine, modified times should be set correctly
1 = You forgot to call it with a foldername (full path)
2 = The folder does not exist!
3 = Setting the new modified date failed (could e.g. happen if you try to change a date for a file in a UAC protected directory, and the app was not called with admin permissions)

Ofc this version just skips all files that do not fulfill the requirements...

49
Alternatively, try this...

Written in PureBasic.
Accepts one parameter, the filename (put it in quotes if it contains spaces)!

It is a command line app, the return values are the following:
0 = Everything went fine, modified time should be set correctly
1 = You forgot to call it with a filename
2 = The filename does not exist!
3 = There isn't a space where it should be (between date and time in the filename)
4 = Either the date or the time doesn't have the expected length (8 chars for the date, 6 for the time)
5 = Setting the new modified date failed (could e.g. happen if you try to change a date for a file in a UAC protected directory, and the app was not called with admin permissions)

50
Living Room / Re: Why doesn't DC make its own browser?
« on: February 19, 2018, 03:25 PM »
I don't see anywhere that it uses Chromium, so I'm curious.

https://github.com/minbrowser/min

Note: Min uses an older version of Chromium, which may be missing security fixes from later versions. More Information

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