Search found 397 matches

by miskox
02 Mar 2021 14:07
Forum: DOS Batch Forum
Topic: .cmd/.bat file size limit? Yes. 2GB
Replies: 2
Views: 1976

Re: .cmd/.bat file size limit? Yes. 2GB

@Dave: you are correct: 32 bits and not 28 bits (looks like we have too much wind and 4 bits were blown away). I did a test with modified .cmd. First three lines contain: @echo START @echo off :: 1 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX Test shows: C:\test.cmd START line 10000001 START C:...
by miskox
01 Mar 2021 11:36
Forum: DOS Batch Forum
Topic: .cmd/.bat file size limit? Yes. 2GB
Replies: 2
Views: 1976

.cmd/.bat file size limit? Yes. 2GB

Hello all! Here https://stackoverflow.com/questions/1217134/file-size-and-line-length-limits-for-windows-batch-files and here https://groups.google.com/g/alt.msdos.batch/c/z_H4JWPih-A (for MS-DOS 6.22) that there is not file size limit to .bat/.cmd. But... Over the weekend I generated (with another ...
by miskox
23 Feb 2021 01:15
Forum: DOS Batch Forum
Topic: Colossal Cave Adventure in batch
Replies: 24
Views: 27067

Re: Colossal Cave Adventure in batch

Dave, thank you. I will check it.

In the ZX Spectrum days there were lots of text adventures but I was never into them... Maybe you could port legendary 'The Hobbit'...if there is a source.

Saso
by miskox
22 Feb 2021 05:38
Forum: DOS Batch Forum
Topic: Colossal Cave Adventure in batch
Replies: 24
Views: 27067

Re: Colossal Cave Adventure in batch

I just downloaded it and tried it. Question: how do I redisplay the inormation I get when entering a new place? If I enter many commands the information disappaers from the screen.

Thanks.
Saso
by miskox
17 Feb 2021 02:57
Forum: DOS Batch Forum
Topic: Problem with variable Drive setup for XP/W98SE
Replies: 17
Views: 4513

Re: Problem with variable Drive setup for XP/W98SE

@ispy:

did you try (in 9X, Xp...) this:

Code: Select all

echo %cd% >temp.file
instead of

Code: Select all

cd>temp.file
(can't test this right now)

Saso
by miskox
16 Feb 2021 02:43
Forum: DOS Batch Forum
Topic: Problem with variable Drive setup for XP/W98SE
Replies: 17
Views: 4513

Re: Problem with variable Drive setup for XP/W98SE

Choice.exe is not present in Windows XP. So there must be another solution to solve this issue. I might try it but currently I don't have access to XP computer. Did you check other links? I think there should be a solution already posted that would do the job.

Saso
by miskox
12 Feb 2021 07:02
Forum: DOS Batch Forum
Topic: Problem with variable Drive setup for XP/W98SE
Replies: 17
Views: 4513

Re: Problem with variable Drive setup for XP/W98SE

Maybe this could help: https://www.robvanderwoude.com/batchfiles.php https://www.robvanderwoude.com/batexamples.php https://www.robvanderwoude.com/files/bootdriv_dos.txt @ECHO OFF :: BOOTDRV.BAT :: Places the boot drive letter in environment variable BOOTDRV :: :: Written by Rob van der Woude :: htt...
by miskox
12 Feb 2021 06:36
Forum: DOS Batch Forum
Topic: Put the End Time the computer will sleep.
Replies: 13
Views: 3091

Re: Put the End Time the computer will sleep.

Good evening, The code below works . . . set /p "time=>Please enter the Time in minutes and press <Enter>: " set /a time=%time%*60 if %time% GEQ 1 ( echo The computer is getting ready to go to Sleep . . . timeout %time% /nobreak > nul %SystemRoot%\system32\rundll32.exe powrprof.dll, SetSuspendState...
by miskox
29 Jan 2021 13:17
Forum: DOS Batch Forum
Topic: Best way to setup a "Dictionary" similar to VBA?
Replies: 16
Views: 4304

Re: Best way to setup a "Dictionary" similar to VBA?

Another way would be to use a dictionary file: dictionary.txt AA#application1 BB#application2 CC#application3 DD#application4 and then you could use FINDSTR /B: @echo off set par=%1 findstr /B "%par%#" dictionary.txt>tmp.tmp set /p "appname="<tmp.tmp for /F "tokens=2 delims=#" %%f in ("%appname%") d...
by miskox
29 Jan 2021 13:08
Forum: DOS Batch Forum
Topic: MODE CON:...
Replies: 2
Views: 1253

MODE CON:...

I wanted to (for fun) have a DOS window of size LINES=1, then display some text, expand the window to LINES=2, display more text etc. (so dynamically increase the window size). Here is the code: @for /L %%f in (1,1,30) DO @mode CON: COLS=80 LINES=%%f&@echo THIS IS IT And the result is not as expecte...
by miskox
26 Jan 2021 01:59
Forum: DOS Batch Forum
Topic: SORT /UNIQUE /UNI_OUTPUT...
Replies: 4
Views: 1645

Re: SORT /UNIQUE /UNI_OUTPUT...

jfl wrote:
25 Jan 2021 06:35
So beyond uni_output and unique, the only other undocumented option would be /CASE_SENSITIVE.
I tested it. It is accepted as switch, complete or abbreviated, but does not seem to have any effect:
I missed that (CASE_SENSITIVE) in my original post.

Thanks.
Saso
by miskox
26 Jan 2021 01:58
Forum: DOS Batch Forum
Topic: Creating a script to gather PC information - to assist those asking for help
Replies: 161
Views: 75642

Re: Creating a script to gather PC information - to assist those asking for help

I thought of that based on this https://www.ghisler.ch/board/viewtopic.php?f=32&t=73738 . I had a problem with copy/paste (as I see it internal copy/paste to Total Commander) when my national letters (ČŠŽ) were changed (not copied correctly) on one computer. I thought maybe this (English Windows XP,...
by miskox
25 Jan 2021 07:14
Forum: DOS Batch Forum
Topic: Create a text file (copied.txt) which saves the name of the copied files
Replies: 9
Views: 2076

Re: Create a text file (copied.txt) which saves the name of the copied files

Yes, now I see (first I only thought that *some* files will be removed): But the files of directory B will be removed after some time. I only need to copy the new files from directory A that have not yet been copied to directory B. As you proposed: move files to archive folder and then copy files fr...
by miskox
25 Jan 2021 04:30
Forum: DOS Batch Forum
Topic: SORT /UNIQUE /UNI_OUTPUT...
Replies: 4
Views: 1645

SORT /UNIQUE /UNI_OUTPUT...

Here https://www.dostips.com/forum/viewtopic.php?p=63727#p63727 Dave mentions /UNIQUE qualifier with the SORT command. I checked sort.exe. It contains (marked in green are those already displayed with help). case_sensitive [color=#00BF00]locale memory output reverse record_maximum temporary [/color]...
by miskox
25 Jan 2021 03:27
Forum: DOS Batch Forum
Topic: Create a text file (copied.txt) which saves the name of the copied files
Replies: 9
Views: 2076

Re: Create a text file (copied.txt) which saves the name of the copied files

Code: Select all

@crazylife:

I only need to copy the new files from directory A that have not yet been copied to directory B.
Can you just skip the files that are already in directory B (do not overwrite)?

Or am I missing something.

Saso