Search found 397 matches

by miskox
25 Jul 2021 11:56
Forum: DOS Batch Forum
Topic: CONVERTCP.exe - Convert text from one code page to another
Replies: 130
Views: 122310

Re: CONVERTCP.exe - Convert text from one code page to another

Steffen, you can't stop?

I mean - thanks.
Saso
by miskox
19 Jul 2021 08:49
Forum: DOS Batch Forum
Topic: Filter DIR by Date and Time?
Replies: 3
Views: 251

Re: Filter DIR by Date and Time?

You could use something like this:

Code: Select all

for /r %F in (*) do @echo %~tF %~zF %F|find "16. 06. 2021"
Instead of "16. 06. 2021" you could replace it with a variable you assign earlier.

Saso
by miskox
24 Jun 2021 01:06
Forum: DOS Batch Forum
Topic: CONVERTCP.exe - Convert text from one code page to another
Replies: 130
Views: 122310

Re: CONVERTCP.exe - Convert text from one code page to another

Steffen, thank you. Yes.. you thought there will be no more updates...

I will give it a try but might take a week or two.

Thank you.

Saso
by miskox
21 May 2021 03:19
Forum: DOS Batch Forum
Topic: Need help clearing a log while it is being written to (CMD)
Replies: 4
Views: 815

Re: Need help clearing a log while it is being written to (CMD)

Your solution has a problem: if this log file is very large (or not) it can happen that additional information will be appended to it (firstlog file). This means that when TYPE finishes and you try to delete this file after the TYPE command you will lose some information. If you could do this: renam...
by miskox
19 Apr 2021 06:50
Forum: DOS Batch Forum
Topic: Windows (and Office?) product key finder
Replies: 13
Views: 2315

Re: Windows (and Office?) product key finder

I wanted to test both programs (not related to your post). I can't test it on x64 XP, sorry. What is strange is that PROCESSOR_ARCHITECTURE=x86 but it really is 64-bit computer. And Shadow tests if "%processor_architecture%"=="AMD64" but SET P shows PROCESSOR_ARCHITECTURE=x86 PROCESSOR_ARCHITEW6432=...
by miskox
19 Apr 2021 04:27
Forum: DOS Batch Forum
Topic: Windows (and Office?) product key finder
Replies: 13
Views: 2315

Re: Windows (and Office?) product key finder

Thank you both. ShadowThief's version is not working on my work computer (x64). Errors I get: ERROR: The system was unable to find the specified registry key or value. Invalid number. Numeric constants are either decimal (17), hexadecimal (0x11), or octal (021). ... But set p displays PROCESSOR_ARCH...
by miskox
12 Apr 2021 15:36
Forum: DOS Batch Forum
Topic: Windows (and Office?) product key finder
Replies: 13
Views: 2315

Windows (and Office?) product key finder

There are scripts published on the web that display Windows (XP and up) product keys (XXXXX-XXXXX-XXXXX-XXXXX-XXXXX). On Microsoft's site you can find this .vbs script (I replaced msgbox with wscript.echo). This script displays Windows 10 key for your computer: Set WshShell = CreateObject("WScript.S...
by miskox
09 Apr 2021 06:44
Forum: DOS Batch Forum
Topic: Simple replace text in txt file script
Replies: 2
Views: 1247

Re: Simple replace text in txt file script

If you only have one line (you wrote: sample.txt just has this in it) in the file you could only use

Code: Select all

@echo new_color>filename.txt
Answer is based on the info you provided.

Saso
by miskox
06 Apr 2021 14:08
Forum: DOS Batch Forum
Topic: How do I convert batch script arguments to pattern?
Replies: 6
Views: 1985

Re: How do I convert batch script arguments to pattern?

In total commander try using %P%S. Maybe this will help.

Or use %s (lowercase s).

Maybe better solution might be to use SHIFT in a loop to move parameters into variables.

Saso
by miskox
26 Mar 2021 04:14
Forum: DOS Batch Forum
Topic: Command prompt - combining files by name
Replies: 13
Views: 3334

Re: Command prompt - combining files by name

I did a test (Windows 10): Sequence_test.cmd contains: @echo off title This will take a while... echo 3 >003.txt timeout /t 120 echo 4 >004.txt timeout /t 120 echo 5 >005.txt timeout /t 120 echo 1 >001.txt timeout /t 120 echo 2 >002.txt timeout /t 120 copy /b 0*.txt 0_b.log copy 0*.txt 0__.log copy ...
by miskox
26 Mar 2021 01:12
Forum: DOS Batch Forum
Topic: Command prompt - combining files by name
Replies: 13
Views: 3334

Re: Command prompt - combining files by name

@miskox I've tried your command but unfortunately, I get the same order as with my type command.. I did rename your .out file to a .log file, but I doubt that is the reason for it Interesting. So I was lucky because I generated all my files in a sequence - this must be the reason that everything ha...
by miskox
23 Mar 2021 09:26
Forum: DOS Batch Forum
Topic: Command prompt - combining files by name
Replies: 13
Views: 3334

Re: Command prompt - combining files by name

@penpen: I've used this command many times - always as expected (in the correct sequential order). Of course it is up to the OP to decide.

Saso
by miskox
22 Mar 2021 08:06
Forum: DOS Batch Forum
Topic: Command prompt - combining files by name
Replies: 13
Views: 3334

Re: Command prompt - combining files by name

Can this be used or something like that?

Code: Select all

copy *.txt outfile.out
or maybe

Code: Select all

copy /b *.txt outfile.out
Saso
by miskox
03 Mar 2021 15:21
Forum: DOS Batch Forum
Topic: Foxidrive has left us
Replies: 35
Views: 26097

Re: Foxidrive has left us

57...too young. I am 50 already so I know.

Thanks for the info.

Saso
by miskox
03 Mar 2021 13:33
Forum: DOS Batch Forum
Topic: Foxidrive has left us
Replies: 35
Views: 26097

Re: Foxidrive has left us

Does anyone have a picture of him? What was his age when he passed away? What was his real name?

Thanks.
Saso