Search found 25 matches

by (_osd_)
11 Oct 2016 10:00
Forum: DOS Batch Forum
Topic: Compile .bat to .exe?
Replies: 6
Views: 7622

Compile .bat to .exe?

Hello,
how can one compile a .bat script to a .exe file?
Help appreciated, thanks.
by (_osd_)
10 Oct 2016 07:49
Forum: DOS Batch Forum
Topic: Disable changing of the window size?
Replies: 3
Views: 3622

Disable changing of the window size?

Hello,
how can one disable the changing of the cmd-window? So that you can't pull it with your mouse to make
it bigger/smaller than the mode command made it.
by (_osd_)
22 Sep 2016 10:41
Forum: DOS Batch Forum
Topic: How to check if a variable contains only safe characters?
Replies: 2
Views: 3027

How to check if a variable contains only safe characters?

See title, so I only want alphanumeric characters after a scan.
So that for example "$*[]?/{}bob" will throw out an error.

How can you do this?
by (_osd_)
21 Sep 2016 12:03
Forum: DOS Batch Forum
Topic: &'s in WGET URLs
Replies: 5
Views: 7233

Re: &'s in WGET URLs

@SquashMan Yes, but it did not work.
by (_osd_)
21 Sep 2016 11:45
Forum: DOS Batch Forum
Topic: &'s in WGET URLs
Replies: 5
Views: 7233

&'s in WGET URLs

Hello,
how can I use &'s in a url in a WGET-command?
For example:
http://www.test.com?name=bob&gender=male
by (_osd_)
18 Sep 2016 07:03
Forum: DOS Batch Forum
Topic: Save textlines to respective variables
Replies: 6
Views: 6717

Re: Save textlines to respective variables

@aGerman Ok... So how can I do that?
by (_osd_)
18 Sep 2016 05:15
Forum: DOS Batch Forum
Topic: Save textlines to respective variables
Replies: 6
Views: 6717

Re: Save textlines to respective variables

@AGerman Thanks, it works! Why is that better though?
by (_osd_)
18 Sep 2016 04:58
Forum: DOS Batch Forum
Topic: Save textlines to respective variables
Replies: 6
Views: 6717

Save textlines to respective variables

Hello! I have a textfile called "abc.tmp" and it has 500 lines, in every line is one number. I want every number to be saved in a variable that is respective to the line it got from, so: These are the first 5 lines of "abc.tmp": 3 4 0 2 1 And I want the first line (3) to be saved...
by (_osd_)
17 Aug 2016 03:21
Forum: DOS Batch Forum
Topic: Problem with a game
Replies: 5
Views: 5857

Re: Problem with a game

You test this Write for the axis x;y and exclude. @echo off @setlocal EnableDelayedExpansion @mode con cols=58 lines=18 @color f0 @for %%i in (choice.exe) do @( for /f "delims==-" %%i in ('2^>nul set') do set "%%i=" set Path=%%~dp$PATH:i ) @set prompt=$G$S @for /L %%i in (58,1,5...
by (_osd_)
15 Aug 2016 03:15
Forum: DOS Batch Forum
Topic: Problem with a game
Replies: 5
Views: 5857

Re: Problem with a game

ShadowThief wrote:What the end result looks like is up to you. I'm not entirely sure what you're asking; it seems like you already know what you want to do. Are you looking for the code for how to implement it?


Exactly! I do not know how to program it :/
by (_osd_)
14 Aug 2016 13:11
Forum: DOS Batch Forum
Topic: Can anyone help me clean up this code?
Replies: 7
Views: 7641

Re: Can anyone help me clean up this code?

It uses Colous.exe, an external program to display colors in batch, but can be used instead of cls as well. Download for Colous.exe: http://www.mediafire.com/download/jzem4xtymkd/colous.exe Link to the guy who made Colous.exe: https://diamam.blogspot.de/2010/10/ya-llega-colous-v6.html Thanks for sh...
by (_osd_)
14 Aug 2016 12:57
Forum: DOS Batch Forum
Topic: Problem with a game
Replies: 5
Views: 5857

Problem with a game

Hello, I have an idea for a "game" that I am programming, which I have already posted 1-2 questions for here already. Here's another question. So the game has a field where you can walk around using WASD. I want the player (#) to have a 3 "block" radius of "light" that ...
by (_osd_)
14 Aug 2016 11:33
Forum: DOS Batch Forum
Topic: Can anyone help me clean up this code?
Replies: 7
Views: 7641

Re: Can anyone help me clean up this code?

I found a way to fix the flickering myself. Please share your solution, and let us know how it compares to einstein1969's. It uses Colous.exe, an external program to display colors in batch, but can be used instead of cls as well. Download for Colous.exe: http://www.mediafire.com/download/jzem4xtym...
by (_osd_)
14 Aug 2016 06:30
Forum: DOS Batch Forum
Topic: Can anyone help me clean up this code?
Replies: 7
Views: 7641

Re: Can anyone help me clean up this code?

Nevermind, I found a way to fix the flickering myself.

/close
by (_osd_)
13 Aug 2016 09:54
Forum: DOS Batch Forum
Topic: Can anyone help me clean up this code?
Replies: 7
Views: 7641

Can anyone help me clean up this code?

As the screen flickers quite often while moving (WASD), I was wondering if the code could be cleaned up to run faster. Can you help me? Would be greatly appreciated @echo off setlocal EnableDelayedExpansion mode con cols=56 lines=18 color f0 for /L %%i in (58,1,503) do set "u%%i=±" for /L ...