Search found 46 matches
- 08 Jan 2014 13:47
- Forum: DOS Batch Forum
- Topic: detect batch launching method (prompt or icon double-click)
- Replies: 13
- Views: 11365
Re: detect batch launching method (prompt or icon double-cli
OMG That is just so wrong. I can only assume it is a nasty bug. Workaround - assign the complete value to a normal variable and then take the substring of the copy. Dave Benham One can do this also: D:\>set "cmdcmdline=%cmdcmdline%" D:\>echo: %cmdcmdline% cmd D:\>echo: %cmdcmdline:~1,2% m...
- 07 Jan 2014 19:47
- Forum: DOS Batch Forum
- Topic: detect batch launching method (prompt or icon double-click)
- Replies: 13
- Views: 11365
Re: detect batch launching method (prompt or icon double-cli
It is also present in winXP - 32bit: C:\>echo %cmdcmdline% "C:\WINDOWS\system32\cmd.exe" C:\>echo %cmdcmdline:~0,3% "C: C:\>echo %cmdcmdline:~1,3% C: C:\>echo %cmdcmdline:~1,3% : C:\>echo %cmdcmdline:~1,3% ECHO ist eingeschaltet (ON). I tested other dynamic variables and got the same ...
- 07 Jan 2014 16:27
- Forum: DOS Batch Forum
- Topic: detect batch launching method (prompt or icon double-click)
- Replies: 13
- Views: 11365
Re: detect batch launching method (prompt or icon double-cli
Out of curiosity i fiddled around a bit with "echo %cmdcmdline%" and got some strange results... D:\>echo %cmdcmdline% cmd D:\>echo %cmdcmdline:~0,3% cmd D:\>echo %cmdcmdline:~1,3% md D:\>echo %cmdcmdline:~2,3% ECHO ist eingeschaltet (ON). D:\>echo %cmdcmdline:~1,3% ECHO ist eingeschaltet ...
- 02 Jan 2014 15:16
- Forum: DOS Batch Forum
- Topic: Need DOS command
- Replies: 4
- Views: 4414
Re: Need DOS command
That's it -- telnet! Thank you. Where do I go for help with telnet commands? You could type "telnet /?" for general help, or you could just type "telnet" hit enter and then type "help" and hit enter again for command-help inside a telnet session. Or, if you prefer, you...
- 30 Dec 2013 18:29
- Forum: DOS Batch Forum
- Topic: Off Topic Stuff
- Replies: 16
- Views: 15417
Re: Off Topic Stuff
My first games were Jill of the jungle and the Commander Keen Saga.
I'm still sad that I lost my original copy of the latter.
The Santa Clause link is nice, but have a look on this one:
http ://www.youtube.com/watch?v=hb3A1TdqXug - (Drawing the Mona Lisa in MSPaint)
I'm still sad that I lost my original copy of the latter.
The Santa Clause link is nice, but have a look on this one:
http ://www.youtube.com/watch?v=hb3A1TdqXug - (Drawing the Mona Lisa in MSPaint)
- 30 Dec 2013 08:44
- Forum: DOS Batch Forum
- Topic: Conversation
- Replies: 39
- Views: 28021
Re: Conversation
[...]if you are not happy, then just ignore my posts[...] This falls in the category of "be careful what you wish for" because: @everyone who has enough of this dude: I just found a little nifty function on this board. It's in the "User Control Panel - Friends & Foes - Manage Foe...
- 29 Dec 2013 14:08
- Forum: DOS Batch Forum
- Topic: Conversation
- Replies: 39
- Views: 28021
Re: Conversation
@berserker The way i see it: This is a forum for dos-batch. Since (almost) every computer has acces to vbscript/jscript code snippets of those are welcome. On my work machine i'm strictly forbidden to install third-party software (compiler, wget, etc) and while i'm at home I do not have the slightes...
- 29 Dec 2013 08:13
- Forum: DOS Batch Forum
- Topic: MS DOS batch file ebook.
- Replies: 5
- Views: 5775
Re: MS DOS batch file ebook.
I learned DOS from http://www.antonis.de/ (it's in german)
and from http://www.robvanderwoude.com/batchstart.php (in english).
and from http://www.robvanderwoude.com/batchstart.php (in english).
- 23 Dec 2013 18:29
- Forum: DOS Batch Forum
- Topic: SNAKE.BAT 4.1 - An arcade style game using pure batch
- Replies: 108
- Views: 459418
Re: SNAKE.BAT 3.2 - An arcade style game using pure batch
This is an amazing piece of work, dbenham.
I had totally forgotten how addictive this game is
I have one question/suggestion: How about a button to pause while playing?
I had totally forgotten how addictive this game is
I have one question/suggestion: How about a button to pause while playing?
- 20 Dec 2013 09:41
- Forum: DOS Batch Forum
- Topic: Searching file and renaming folder
- Replies: 15
- Views: 9040
Re: Searching file and renaming folder
where is your "hinweis.txt" located? if it's not in the same folder you need to declare the path where it is. example: for /r %%a in (C:\Pfad\zur\Datei\hinweis.txt) do set "folder=%%~dpa"&set "file=%%~na" if defined folder move "%folder%" "%folder [%f...
- 20 Dec 2013 09:18
- Forum: DOS Batch Forum
- Topic: Searching file and renaming folder
- Replies: 15
- Views: 9040
Re: Searching file and renaming folder
wrong: "set variabel=" correct: set "variabel=" wrong: for /r %%a in (file1.txt) do "set folder=%%~dpa"&set "file=%%~na" correct: for /r %%a in (file1.txt) do set "folder=%%~dpa"&set "file=%%~na" foxidrive just misplaced one of the ...
- 04 Dec 2013 17:05
- Forum: DOS Batch Forum
- Topic: Batch File- Disable Restart on Error
- Replies: 4
- Views: 3674
Re: Batch File- Disable Restart on Error
[mean-mode] You could always try what what google says... Or you could do this: put the following code in a file, name it whateveryouwant.reg and then double-click it Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl] “AutoReboot”=dword:00000000 [...
- 03 Dec 2013 13:22
- Forum: DOS Batch Forum
- Topic: [solved]choice command is not working for me
- Replies: 2
- Views: 2705
Re: choice command is not working for me
In combination with "choice" you have to use the "if errorlevel" lines in a descending order:
and so on.
Code: Select all
if errorlevel 2 goto wrongAnswer
if errorlevel 1 goto start
Code: Select all
if errorlevel 2 goto live
if errorlevel 1 goto death
and so on.
- 29 Nov 2013 17:16
- Forum: DOS Batch Forum
- Topic: ~ Title bar Date & Clock help ~[ SOLVED ]
- Replies: 13
- Views: 10049
Re: ~ Title bar Date & Clock help ~
thanks for trying. However, I corrected the "set msec ..." because he had no double quotes. and have added e delayed time variable.
Then i must have used the already edited code right before you answered.
Apologies Dos_Probie. My timing was bad.
- 29 Nov 2013 17:00
- Forum: DOS Batch Forum
- Topic: ~ Title bar Date & Clock help ~[ SOLVED ]
- Replies: 13
- Views: 10049
Re: ~ Title bar Date & Clock help ~
Dos_Probie wrote:Einstein, the 1st code you posted showed the date and time in title but now your updated code is not working at all now.. must be a typo somewhere.
I just tried the posted code and it works. Just wait a few seconds.