Search found 139 matches

by batchcc
09 Nov 2016 14:57
Forum: DOS Batch Forum
Topic: Resetting multiple variables at once
Replies: 4
Views: 2237

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?

Code: Select all

set var1=
set var2=
set var3=
set var4=
set var5=
set var6=
set var7=
set var8=
...

Thank you!
by batchcc
08 Nov 2016 14:13
Forum: DOS Batch Forum
Topic: Foxidrive has left us
Replies: 29
Views: 16720

Re: Foxidrive has left us

:( thank you for all your help foxdrive.
by batchcc
25 Oct 2016 16:55
Forum: DOS Batch Forum
Topic: Spell words in a list backwards
Replies: 12
Views: 3848

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 :D
by batchcc
23 Oct 2016 10:04
Forum: DOS Batch Forum
Topic: Spell words in a list backwards
Replies: 12
Views: 3848

Re: Spell words in a list backwards

Thanks Aacini, I'm on my phone I'll check it as soon as I can.
by batchcc
23 Oct 2016 07:26
Forum: DOS Batch Forum
Topic: Spell words in a list backwards
Replies: 12
Views: 3848

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

Code: Select all

Word
Cat
Stuff
Batch

Backwards.txt

Code: Select all

Drow
Tac
Ffuts
Hctab

There are ~ 750 words in list.txt
by batchcc
15 Oct 2016 17:16
Forum: DOS Batch Forum
Topic: non gnuwin32 alternative to head?
Replies: 5
Views: 3374

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.
by batchcc
11 Oct 2016 12:46
Forum: DOS Batch Forum
Topic: Compile .bat to .exe?
Replies: 6
Views: 2917

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...
by batchcc
11 Oct 2016 11:35
Forum: DOS Batch Forum
Topic: Compile .bat to .exe?
Replies: 6
Views: 2917

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

Code: Select all

Shift /0

To the top does anyone know why?
by batchcc
03 Oct 2016 09:55
Forum: DOS Batch Forum
Topic: What external files are needed to run cmd
Replies: 6
Views: 2073

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
by batchcc
03 Oct 2016 06:55
Forum: DOS Batch Forum
Topic: What external files are needed to run cmd
Replies: 6
Views: 2073

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...
by batchcc
03 Oct 2016 06:27
Forum: DOS Batch Forum
Topic: What external files are needed to run cmd
Replies: 6
Views: 2073

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)?
by batchcc
01 Oct 2016 15:20
Forum: DOS Batch Forum
Topic: Your top picks out of the forum threads and posts
Replies: 4
Views: 1835

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...
by batchcc
26 Sep 2016 16:27
Forum: DOS Batch Forum
Topic: Trying to insert text to end of every line
Replies: 7
Views: 2811

Re: Trying to insert text to end of every line

Here's another way http://stackoverflow.com/questions/1002 ... n-txt-file

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.