Search found 139 matches
- 09 Nov 2016 18:07
- Forum: DOS Batch Forum
- Topic: Resetting multiple variables at once
- Replies: 4
- Views: 5265
- 09 Nov 2016 14:57
- Forum: DOS Batch Forum
- Topic: Resetting multiple variables at once
- Replies: 4
- Views: 5265
Resetting multiple variables at once
I have a batch file with a large amount of variables now rather than adding this to the beginning of the file is there an easy way to resset all the variables?
Thank you!
Code: Select all
set var1=
set var2=
set var3=
set var4=
set var5=
set var6=
set var7=
set var8=
...
Thank you!
- 08 Nov 2016 14:13
- Forum: DOS Batch Forum
- Topic: Foxidrive has left us
- Replies: 42
- Views: 181362
Re: Foxidrive has left us
thank you for all your help foxdrive.
- 25 Oct 2016 16:55
- Forum: DOS Batch Forum
- Topic: Spell words in a list backwards
- Replies: 12
- Views: 8649
Re: Spell words in a list backwards
Thanks everyone I've only tried the first solution but I'll certainly try the others as soon as I can
- 23 Oct 2016 10:04
- Forum: DOS Batch Forum
- Topic: Spell words in a list backwards
- Replies: 12
- Views: 8649
Re: Spell words in a list backwards
Thanks Aacini, I'm on my phone I'll check it as soon as I can.
- 23 Oct 2016 07:26
- Forum: DOS Batch Forum
- Topic: Spell words in a list backwards
- Replies: 12
- Views: 8649
Spell words in a list backwards
Hello everyone, I am looking for a batch file that can spell all the words in a list backwards and export them to backwards.txt for example:
List.txt
Backwards.txt
There are ~ 750 words in list.txt
List.txt
Code: Select all
Word
Cat
Stuff
Batch
Backwards.txt
Code: Select all
Drow
Tac
Ffuts
Hctab
There are ~ 750 words in list.txt
- 15 Oct 2016 17:16
- Forum: DOS Batch Forum
- Topic: non gnuwin32 alternative to head?
- Replies: 5
- Views: 6651
Re: non gnuwin32 alternative to head?
Squashman wrote:taripo wrote:I want some alternatives to gnuwin32 head, and not a gnuwin32 alternative.
Well that is a head scratcher.
Ha great pun. Well I better head off now.
- 13 Oct 2016 17:29
- Forum: DOS Batch Forum
- Topic: Cmdgfx - draw 3d and graphic primitives (polygons,circles etc) in cmd window (now with 24-bit RGB support!)
- Replies: 125
- Views: 228047
Re: Cmdgfx - draw graphic primitives (polygons,circles etc) in cmd line window
I can't wait to try this maze out!
- 11 Oct 2016 12:46
- Forum: DOS Batch Forum
- Topic: Compile .bat to .exe?
- Replies: 6
- Views: 6732
Re: Compile .bat to .exe?
By going to the %tmp% folder the batch file should be in a sub folder so compiling it only protects the code from people that don't know this. Also I when I used an online compiler it added the line Shift /0 To the top does anyone know why? probably the call includes the name of the file and with s...
- 11 Oct 2016 11:35
- Forum: DOS Batch Forum
- Topic: Compile .bat to .exe?
- Replies: 6
- Views: 6732
Re: Compile .bat to .exe?
By going to the %tmp% folder the batch file should be in a sub folder so compiling it only protects the code from people that don't know this.
Also I when I used an online compiler it added the line
To the top does anyone know why?
Also I when I used an online compiler it added the line
Code: Select all
Shift /0
To the top does anyone know why?
- 03 Oct 2016 09:55
- Forum: DOS Batch Forum
- Topic: What external files are needed to run cmd
- Replies: 6
- Views: 5069
Re: What external files are needed to run cmd
Thanks ShadowThief, I'm sorry about the wording of the question I will try to get better at that
- 03 Oct 2016 06:55
- Forum: DOS Batch Forum
- Topic: What external files are needed to run cmd
- Replies: 6
- Views: 5069
Re: What external files are needed to run cmd
What do you mean with "it doesn't run perfectly"? Where do you copy it to (same hdd/ same pc/...)? Do you use a custom environment variable set (for example another "path" value)? (You should mention each difference.) penpen By perfectly I mean if I went onto the forum and copie...
- 03 Oct 2016 06:27
- Forum: DOS Batch Forum
- Topic: What external files are needed to run cmd
- Replies: 6
- Views: 5069
What external files are needed to run cmd
So if I take a copy of cmd.exe and put it in another folder it doesn't run perfectly what files are needed for it to work and run default commands (no extra downloads)?
- 01 Oct 2016 15:20
- Forum: DOS Batch Forum
- Topic: Your top picks out of the forum threads and posts
- Replies: 4
- Views: 4528
Re: Your top picks out of the forum threads and posts
JREPL.BAT http://www.dostips.com/forum/viewtopic.php?f=3&t=6044 Advanced batch features http://www.dostips.com/forum/viewtopic.php?f=3&t=3428 It seems like there are three basic things any people ask for help with Renaming files Deleting files Copying copying Three default codes could be use...
- 26 Sep 2016 16:27
- Forum: DOS Batch Forum
- Topic: Trying to insert text to end of every line
- Replies: 7
- Views: 7152
Re: Trying to insert text to end of every line
Here's another way http://stackoverflow.com/questions/1002 ... n-txt-file
Ps I had the same problem and it took me forever to find this on google.
Code: Select all
@echo off
setLocal EnableDelayedExpansion
for /f "tokens=* delims= " %%a in (input.txt) do (
set /a N+=1
echo ^"%%a^",>>output.txt
)
Ps I had the same problem and it took me forever to find this on google.