Search found 1564 matches

by Ed Dyreen
23 Feb 2019 09:54
Forum: DOS Batch Forum
Topic: newbie min cmd window?
Replies: 19
Views: 884

Re: newbie min cmd window?

Ah yes, aGeman's is better, and can be even shorter because you do not even need args. @echo off &if "%~1" neq "MIN" start /MIN cmd /c "%~f0" MIN &exit /b start "" "E:\LaunchBox\Games\Big Fish Games\Launchers\Blackie.exe" start "my game" /WAIT "E:\12noon Display Changer\dc64.exe" -width=1280 -height...
by Ed Dyreen
23 Feb 2019 09:31
Forum: DOS Batch Forum
Topic: Bathc - find and replace several strings (Quick as possible!)
Replies: 4
Views: 332

Re: SOLUTION!

I figured out I that I wasn't defining :MakeReplace location and files at the end of the script... I suspected something like that :) On a side note, I would REALLY love an explanation or solution on how to run this more efficiently? Even the most efficient batch algorithm will be slow, vbs is noto...
by Ed Dyreen
23 Feb 2019 09:10
Forum: DOS Batch Forum
Topic: newbie min cmd window?
Replies: 19
Views: 884

Re: newbie min cmd window?

thank you for your help. this works so im happy but I want to learn. how would I make it into a single batch file? @echo off for /F "tokens=3 delims=:" %%? in ( "%~0" ) do if %%? EQU getParams ( start "" "E:\LaunchBox\Games\Big Fish Games\Launchers\Blackie.exe" start "my game" /WAIT "E:\12noon Disp...
by Ed Dyreen
23 Feb 2019 07:27
Forum: DOS Batch Forum
Topic: newbie min cmd window?
Replies: 19
Views: 884

Re: newbie min cmd window?

Nicodemus wrote:
23 Feb 2019 07:05
thank you. I want to understand. I can use one cmd file to run another? also, they have to be separate files? thank you everyone for your help, I learned a lot. :D
No they don't, actually I've been thinking a bit about your question because I was wondering if you preferred only a single batch.
by Ed Dyreen
22 Feb 2019 21:30
Forum: DOS Batch Forum
Topic: newbie min cmd window?
Replies: 19
Views: 884

Re: newbie min cmd window?

Eh no, more like in 2 separate files startMinimized.CMD start "" /MIN "startGame.CMD" startGame.CMD @echo off start "" "E:\LaunchBox\Games\Big Fish Games\Launchers\Blackie.exe" start "my game" /WAIT "E:\12noon Display Changer\dc64.exe" -width=1280 -height=720 /c "E:\LaunchBox\Games\Big Fish Games\My...
by Ed Dyreen
22 Feb 2019 20:48
Forum: DOS Batch Forum
Topic: Bathc - find and replace several strings (Quick as possible!)
Replies: 4
Views: 332

Re: Bathc - find and replace several strings (Quick as possible!)

I do not see what is wrong with that vbs, but If you do the main part in vbs, you might just as well do it all in vbs, I wonder why people wrap vbs scripts in a batch when both languages can do the job without each others help. Convention is that languages are physically separated from each other un...
by Ed Dyreen
22 Feb 2019 19:38
Forum: DOS Batch Forum
Topic: newbie min cmd window?
Replies: 19
Views: 884

Re: newbie min cmd window?

your right it doesn't. but im still trying different things. my mistake :) startMinimized.CMD start "" /MIN "startGame.CMD" startGame.CMD will start minimized in there you put the actual code. omg! the 2nd script worked. I see what I was doing wrong. thank you I tested the first script on my pc, bu...
by Ed Dyreen
22 Feb 2019 17:14
Forum: DOS Batch Forum
Topic: newbie min cmd window?
Replies: 19
Views: 884

Re: newbie min cmd window?

This may work, in the worst case the script will respond after 9 pings, script requires system to have a network driver installed or it will clog the CPU. @echo off start "my game" "E:\12noon Display Changer\dc64.exe" -width=1280 -height=720 /c "E:\LaunchBox\Games\Big Fish Games\Mystery Case Files -...
by Ed Dyreen
22 Feb 2019 12:08
Forum: DOS Batch Forum
Topic: Windows 10 Startup Loop CMD Regback backup
Replies: 7
Views: 407

Re: Windows 10 Startup Loop CMD Regback backup

Ah sorry, I did not read you already had the backups, hope you can repair it like that. I wouldn't know howto because I switched to using software many larger companies use years ago because it was more versatile and reliable at the time and probably still.
by Ed Dyreen
22 Feb 2019 11:46
Forum: DOS Batch Forum
Topic: Windows 10 Startup Loop CMD Regback backup
Replies: 7
Views: 407

Re: Windows 10 Startup Loop CMD Regback backup

Of course you have an array of backups of all your important data at your disposal, if not then your data is either not important or you have been very naïve. This happens to everybody, learn from it. I use a pirated version of acronis true image enterprise server. That can backup and restore any fi...
by Ed Dyreen
21 Feb 2019 18:22
Forum: DOS Batch Forum
Topic: Batch file to backup the documents folder on a continuing basis deleting old files while replacing with udated ones
Replies: 3
Views: 263

Re: Batch file to backup the documents folder on a continuing basis deleting old files while replacing with udated ones

The defaults are saved to a file 'defaults.cfg'. You could edit the file using notepad.

Or just copy the command line switches to a batch and run from there so the config file is not used.
by Ed Dyreen
21 Feb 2019 14:58
Forum: DOS Batch Forum
Topic: running any external command safely !
Replies: 10
Views: 791

Re: running any external command safely !

But perhaps your problem has something to do with the intermittent XP bug when a FOR /F IN() clause contains an unquoted/unescaped token delimiter . I think we can exclude that one. parent cmd /K regular for 'unescaped' works yes yes no yes no no no yes yes no no yes Although the problem arised in ...
by Ed Dyreen
20 Feb 2019 05:01
Forum: DOS Batch Forum
Topic: running any external command safely !
Replies: 10
Views: 791

Re: running any external command safely !

Running an external command in a cmd /K initiated environment the "usual" way is insecure. Testing platform XP. Path contains brackets AND spaces: set "externalCommand=..\doskitXPserver2003 v0.1 (20190129)\Hello world ^^^!\doskitXPserver2003 v0.1 (20190129)\ext\eval\eval.EXE" set "externalCommand" e...
by Ed Dyreen
16 Feb 2019 10:19
Forum: DOS Batch Forum
Topic: Save/Load null variables
Replies: 3
Views: 333

Re: Save/Load null variables

some variables are null
NULL does exist as character but is used internally by cmd for delimiting variables in memory and cannot be assigned or it is used in the context of device during a redirection.
by Ed Dyreen
14 Feb 2019 19:30
Forum: DOS Batch Forum
Topic: Bat file to check a folder for TXT files with the associated PDF file
Replies: 5
Views: 359

Re: Bat file to check a folder for TXT files with the associated PDF file

Can someone please guide me on how to create a new post? I have a question that is completely irrelevant to this post. The same way you created this one ?!? If you mean the fact your post is initially invisible to the general public, that is due to the forum's anti-spam settings, new users need to ...