Computer Hope

Microsoft => Microsoft DOS => Topic started by: Helpmeh on April 25, 2009, 10:24:36 AM

Title: Unable to use space
Post by: Helpmeh on April 25, 2009, 10:24:36 AM
For some reason, when I am trying to type a message, I can't use spaces. It just quickly flashes a message then closes.

Here is the code, please try and find the solution. I checked where the problem is (or is the first time), and it's in red.

Quote
Problem solved. Code removed.
Title: Re: Unable to use space
Post by: tonlo on April 25, 2009, 10:56:56 AM
Wow, a BAT program "school chat v3". You make me change my mind about thing batch command can do. I will try to find out your issue.
Title: Re: Unable to use space
Post by: Helpmeh on April 25, 2009, 11:04:48 AM
Wow, a BAT program "school chat v3". You make me change my mind about thing batch command can do. I will try to find out your issue.
Yeah. %serv% is on a network drive (at school, but not on this one), so people can chat.
Title: Re: Unable to use space
Post by: macdad- on April 25, 2009, 11:08:27 AM
when typing in messages or anything with spaces, make sure you use quotes.
Title: Re: Unable to use space
Post by: Helpmeh on April 25, 2009, 11:11:58 AM
when typing in messages or anything with spaces, make sure you use quotes.
So, if I enter "To the prompt" it won't crash? Hmm 1 sec.

Nope... still crashes. But in a different spot...
Title: Re: Unable to use space
Post by: Geek-9pm on April 25, 2009, 11:30:24 AM
And if you use underscore instead of space?  8)
Title: Re: Unable to use space
Post by: Helpmeh on April 25, 2009, 11:31:18 AM
And if you use underscore instead of space?  8)
It's a chat...I can replace an underscore with space, which worked for v1, but that was the reason why I went to v2...to remove that problemt
Title: Re: Unable to use space
Post by: Helpmeh on April 25, 2009, 12:25:48 PM
Sorry for the double post, but I found the solution...but for the security of my script, I must remove it. I just wrapped %msg% and emerg in quotes in the if %msg%==emerg command.
Title: Re: Unable to use space
Post by: patio on April 25, 2009, 12:29:18 PM
right away...