Search found 28 matches

by BatMaster
28 Jan 2013 20:02
Forum: DOS Batch Forum
Topic: Variables inside a path?
Replies: 5
Views: 4497

Re: Variables inside a path?

I want to have multiple instances of Minecraft to choose from and each one is stored in its own folder

Code: Select all

/minecrafts/1/.minecraft/
/minecrafts/2/.minecraft/
/minecrafts/3/.minecraft/
etc.


I want to be able to use the path /minecrafts/%var%/.minecraft/
to choose the different ones
by BatMaster
28 Jan 2013 15:31
Forum: DOS Batch Forum
Topic: Variables inside a path?
Replies: 5
Views: 4497

Variables inside a path?

Hey guys! I was just working on something when i wondered if it was possible to put variables inside a directory like this \folder\directory\%var%\file where %var% is the name of a folder inside \directory\ Its to help cut down on code when i have multiple instances of the same thing but with differ...
by BatMaster
03 Oct 2011 11:08
Forum: DOS Batch Forum
Topic: Move command help!
Replies: 2
Views: 3046

Re: Move command help!

Thanks aGerman
by BatMaster
03 Oct 2011 10:56
Forum: DOS Batch Forum
Topic: Move command help!
Replies: 2
Views: 3046

Move command help!

hey guys
two Questions for you
1.why does the move command treat spaces as "to"?
AND
2.i need to move a file to another folder but the folders name has spaces :( in it and i need admin rights to rename it. is there anyway i can still use the move command to move it :?:
by BatMaster
03 Oct 2011 10:37
Forum: DOS Batch Forum
Topic: can you set multiple lines into one variable?
Replies: 4
Views: 4208

Re: can you set multiple lines into one variable?

Thanks alot that realy helps
-=BatMaster=-
:D :D :D :D :mrgreen:
by BatMaster
02 Oct 2011 12:21
Forum: DOS Batch Forum
Topic: can you set multiple lines into one variable?
Replies: 4
Views: 4208

can you set multiple lines into one variable?

hey guys
i was just wondering if its possible to set multiple lines into one variable
if it is please tell me if not tell me anyway
by BatMaster
01 Oct 2011 13:34
Forum: DOS Batch Forum
Topic: I need help with this code!!
Replies: 4
Views: 4372

Re: I need help with this code!!

@ !k why does your code echo

Code: Select all

var %_10% = %line%
var %_6a% = %line2%

line1 and 2 being whatever was on the lines 10 and 6a
@aGerman
thanks for your help
your code works perfectley
-=BatMaster=-
by BatMaster
01 Oct 2011 11:03
Forum: DOS Batch Forum
Topic: I need help with this code!!
Replies: 4
Views: 4372

I need help with this code!!

@echo off set /a n1=%random% %% 10 set /a n2=%random% %% 10 <file1.txt ( set /p 1= set /p 2= set /p 3= set /p 4= set /p 5= set /p 6= set /p 7= set /p 8= set /p 9= set /p 10= <file2.txt ( set /p 1a= set /p 2a= set /p 3a= set /p 4a= set /p 5a= set /p 6a= set /p 7a= set /p 8a= set /p 9a= set /p 10a= e...
by BatMaster
01 Oct 2011 06:09
Forum: DOS Batch Forum
Topic: use %random% to echo a number between 200 and 400
Replies: 2
Views: 3198

use %random% to echo a number between 200 and 400

hi
I was wondering if you can tell the %random% command to generate a number between 200 and 400
any help would be greatly appreiciated
-=BatMaster=-
by BatMaster
26 Sep 2011 12:22
Forum: DOS Batch Forum
Topic: batch file wont write %Q% to a text file
Replies: 2
Views: 3352

batch file wont write %Q% to a text file

the batch file wont write the variable Q to a text file

Code: Select all

@echo off
:start
set "Q"="1"
:start2
set "Q"="Q + 1"
>>text.txt echo set /p line%Q%=
goto start2
pause

please help
by BatMaster
13 Sep 2011 12:52
Forum: DOS Batch Forum
Topic: RockPaperScissors *UPDATE*
Replies: 9
Views: 9236

Re: RockPaperScissors *UPDATE*

@aGerman
sorry for the late reply
your code sorta works
it writes the values to hiscore.rps :D
BUT it wont read the values and are always displayed as 0 :(
no matter what is in hiscore.rps
eg. (hiscore.rps)

Code: Select all

137820
239673
643967

output on batch file

Code: Select all

won = 0
lost = 0
drawn = 0
by BatMaster
29 Aug 2011 04:29
Forum: DOS Batch Forum
Topic: A Lottery Batch file
Replies: 4
Views: 5882

Re: A Lottery Batch file

as promised here is the code @echo off &setlocal title TheLottery set/a wins=0 :Start cls echo choose your numbers. 1-10 only! set/p n1=1st: set/p n2=2nd: set/p n3=3rd: set/p n4=4th: set/p n5=5th: set/p n6=6th: :play1 if not "%n1%"=="%random% %% 10" goto play2 set/a wins=&quo...
by BatMaster
20 Aug 2011 10:43
Forum: DOS Batch Forum
Topic: RockPaperScissors *UPDATE*
Replies: 9
Views: 9236

Re: RockPaperScissors *UPDATE*

i tried adding a high score thing. but i wont work here is the code @echo off &setlocal title RockPaperScissors set/a wins=0 set/a lost=0 set/a draws=0 :makehs if exist hiscore.rps goto hscr echo 0>hiscore.rps echo 0>>hiscore.rps echo 0>>hiscore.rps :hscr < hiscore.rps ( set /p line1= set /p lin...
by BatMaster
20 Aug 2011 05:06
Forum: DOS Batch Forum
Topic: A CMD lookalike batch file
Replies: 4
Views: 4203

A CMD lookalike batch file

The batch file was inspired by a story my dad told me about a freind of his, my dads freind made a program that look exactly like command prompt, but completly ignored the users input! mine only uses cls ^*EDIT*^ Fixed the code it was because of a missing registryor something like that anyway here i...
by BatMaster
19 Aug 2011 17:43
Forum: DOS Batch Forum
Topic: RockPaperScissors *UPDATE*
Replies: 9
Views: 9236

Re: RockPaperScissors *UPDATE*

@dbenham i have never used the FOR or DO commands
by the way is the choice command still presebt in windows 7(my OS)?
also how can i echo the > symbol?