Home / Microsoft / Microsoft DOS / if exit..
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: 1 [2]  All - (Bottom) Print
Author Topic: if exit..  (Read 7847 times)
11victory11
Topic Starter
Rookie



Posts: 20


« Reply #15 on: March 20, 2008, 04:06:27 PM »

what that didn't work for me , when it got to the random part it just crashes on me.
IP logged

Dias de verano
Guest
« Reply #16 on: March 20, 2008, 04:35:41 PM »

what that didn't work for me , when it got to the random part it just crashes on me.


Code: [Select]
set /a var=%random% %%4
                   ^
                   ^
                   ^
   needs a space here




IP logged
11victory11
Topic Starter
Rookie



Posts: 20


« Reply #17 on: March 20, 2008, 04:43:11 PM »

didn't work for me.
IP logged

Dias de verano
Guest
« Reply #18 on: March 20, 2008, 04:44:55 PM »

What happened? You need to tell us more. Just saying "it didn't work" is not good enough if you want us to help you.

By the way, could you spell 'sure' properly please?
IP logged
11victory11
Topic Starter
Rookie



Posts: 20


« Reply #19 on: March 20, 2008, 04:49:28 PM »

What happened? You need to tell us more. Just saying "it didn't work" is not good enough if you want us to help you.

By the way, could you spell 'sure' properly please?

the batch file just exits , the code you gave me didn't work.
IP logged

Sidewinder
Guru



Thanked: 89
Posts: 4,315

Experience: Experienced
OS: Windows XP

« Reply #20 on: March 20, 2008, 05:32:10 PM »

Are you running this batch file from the command prompt or are you double clicking it from Explorer? Until you have debugged your file, you should run from the command line so you can see how your code behaves.

 8)
IP logged

If you don't know where you are going, any road will get you there

                                                                            -Lewis Carroll
11victory11
Topic Starter
Rookie



Posts: 20


« Reply #21 on: March 20, 2008, 06:15:36 PM »

i fixed it i had some problems with the goto stuff but its fixed now thanks for all the help really need it! ;D ;D ;D
« Last Edit: March 20, 2008, 06:30:53 PM by 11victory11 » IP logged

Pages: 1 [2]  All - (Top) Print 
Home / Microsoft / Microsoft DOS / if exit.. « previous next »
 


Login with username, password and session length

Old Forum Search | Forum Rules
Copyright © 2010 Computer Hope ® All rights reserved.
Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
Page created in 0.09 seconds with 20 queries.