Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Serious help with BAT?  (Read 18168 times)

0 Members and 1 Guest are viewing this topic.

BC_Programmer


    Mastermind
  • Typing is no substitute for thinking.
  • Thanked: 1140
    • Yes
    • Yes
    • BC-Programming.com
  • Certifications: List
  • Computer: Specs
  • Experience: Beginner
  • OS: Windows 11
Re: Serious help with BAT?
« Reply #30 on: September 01, 2009, 04:08:06 PM »

The program parses the arguments passed- this is why older programs cannot understand quotes.

the C-runtime - in fact, most any runtime -  parses the command line into a array- it takes quotes into account.

batch files are run by cmd and it parses the command line appropriately.
I was trying to dereference Null Pointers before it was cool.

smeezekitty

  • Guest
Re: Serious help with BAT?
« Reply #31 on: September 01, 2009, 05:23:15 PM »
Code: [Select]
[quote author=Helpmeh link=topic=90793.msg615107#msg615107 date=1251842577]
As said many times before "YOU THOUGHT WRONG!". I mean this in a much nicer way. Echo is a program anyway. Try running echo.exe "hi" at the command prompt.
[/quote]
echo isnt a program its a shell command[code]
echo.exe hello
comes out as
Code: [Select]
exe hello
[/code]

BC_Programmer


    Mastermind
  • Typing is no substitute for thinking.
  • Thanked: 1140
    • Yes
    • Yes
    • BC-Programming.com
  • Certifications: List
  • Computer: Specs
  • Experience: Beginner
  • OS: Windows 11
Re: Serious help with BAT?
« Reply #32 on: September 01, 2009, 05:25:40 PM »
helpmeh.... echo isn't a program, it's an internal command...
I was trying to dereference Null Pointers before it was cool.

Helpmeh



    Guru

  • Roar.
  • Thanked: 123
    • Yes
    • Yes
  • Computer: Specs
  • Experience: Familiar
  • OS: Windows 8
Re: Serious help with BAT?
« Reply #33 on: September 01, 2009, 05:28:10 PM »
Well there go all my theories about how babies are made. I was really sure they are implanted as seeds through the bellybutton.
Where's MagicSpeed?
Quote from: 'matt'
He's playing a game called IRL. Great graphics, *censored* gameplay.

BC_Programmer


    Mastermind
  • Typing is no substitute for thinking.
  • Thanked: 1140
    • Yes
    • Yes
    • BC-Programming.com
  • Certifications: List
  • Computer: Specs
  • Experience: Beginner
  • OS: Windows 11
Re: Serious help with BAT?
« Reply #34 on: September 01, 2009, 05:28:59 PM »
Well there go all my theories about how babies are made. I was really sure they are implanted as seeds through the bellybutton.

well... their implanted through seeds, but not through the belly button.  :-X


EDIT:

besides, everybody knows you allocate children.

Dim X as Baby
Set X = new Baby
X.SetParent Me,PARENT_FATHER
Baby.Burp()
Baby.Change()
If Me.AggravationLevel > Me.MaximumAggravationlevel then
     Baby.ShoveInCloset()

End If
I was trying to dereference Null Pointers before it was cool.

smeezekitty

  • Guest
Re: Serious help with BAT?
« Reply #35 on: September 01, 2009, 05:29:59 PM »
Well there go all my theories about how babies are made. I was really sure they are implanted as seeds through the bellybutton.
time to get back on the topic
as i said
cd /D "C:\Program Files\RaycastingGameMaker\GameBitmaps\BBits\"
"Barney's Asylum Reloaded.exe" "endomdog"
should work perfectly because the C runtime will parse out the "s

Helpmeh



    Guru

  • Roar.
  • Thanked: 123
    • Yes
    • Yes
  • Computer: Specs
  • Experience: Familiar
  • OS: Windows 8
Re: Serious help with BAT?
« Reply #36 on: September 01, 2009, 05:35:10 PM »
well... their implanted through seeds, but not through the belly button.  :-X


EDIT:

besides, everybody knows you allocate children.

Dim X as Baby
Set X = new Baby
X.SetParent Me,PARENT_FATHER
Baby.Burp()
Baby.Change()
If Me.AggravationLevel > Me.MaximumAggravationlevel then
     Baby.ShoveInCloset()

End If

Shouldn't it be
Baby.PutInGarbagebag()
in the IF?
Where's MagicSpeed?
Quote from: 'matt'
He's playing a game called IRL. Great graphics, *censored* gameplay.

smeezekitty

  • Guest
Re: Serious help with BAT?
« Reply #37 on: September 01, 2009, 05:38:35 PM »
Code: [Select]
int main(void){
bc_programmer.stop_fooling_around();
Helpmeh.stop_fooling_around();
return (false);
}
i am fairly sure you scared the orig poster off

BC_Programmer


    Mastermind
  • Typing is no substitute for thinking.
  • Thanked: 1140
    • Yes
    • Yes
    • BC-Programming.com
  • Certifications: List
  • Computer: Specs
  • Experience: Beginner
  • OS: Windows 11
Re: Serious help with BAT?
« Reply #38 on: September 01, 2009, 06:17:16 PM »
you forgot to cast us to the common interface type before calling the abstract virtual "stop_fooling_around" function.
I was trying to dereference Null Pointers before it was cool.

smeezekitty

  • Guest
Re: Serious help with BAT?
« Reply #39 on: September 01, 2009, 06:21:10 PM »
oh i see
Code: [Select]
int main(void){
((crazy_poster *)bc_programmer).stop_fooling_around();
((crazy_poster *)Helpmeh).stop_fooling_around();
return (false);
}
i am fairly sure you scared the orig poster off

Helpmeh



    Guru

  • Roar.
  • Thanked: 123
    • Yes
    • Yes
  • Computer: Specs
  • Experience: Familiar
  • OS: Windows 8
Re: Serious help with BAT?
« Reply #40 on: September 01, 2009, 06:40:46 PM »
Now in batch!

If "%babystat%" EQU "crying" shake BABY
Where's MagicSpeed?
Quote from: 'matt'
He's playing a game called IRL. Great graphics, *censored* gameplay.

smeezekitty

  • Guest
Re: Serious help with BAT?
« Reply #41 on: September 01, 2009, 07:28:07 PM »
how about in asm
Code: [Select]
jmp start
shake_baby:
call shakebaby
start:
cmp [baby],crying
je shake_baby

BC_Programmer


    Mastermind
  • Typing is no substitute for thinking.
  • Thanked: 1140
    • Yes
    • Yes
    • BC-Programming.com
  • Certifications: List
  • Computer: Specs
  • Experience: Beginner
  • OS: Windows 11
Re: Serious help with BAT?
« Reply #42 on: September 01, 2009, 08:53:46 PM »
shake_baby should be executed in a loop, to prevent race conditions with the mother object.
I was trying to dereference Null Pointers before it was cool.

Salmon Trout

  • Guest
Re: Serious help with BAT?
« Reply #43 on: September 02, 2009, 12:27:01 AM »
As said many times before "YOU THOUGHT WRONG!". I mean this in a much nicer way. Echo is a program anyway. Try running echo.exe "hi" at the command prompt.

Echo is not an exe. It is an internal command.

Code: [Select]
C:\>echo.exe hi
exe hi

Helpmeh



    Guru

  • Roar.
  • Thanked: 123
    • Yes
    • Yes
  • Computer: Specs
  • Experience: Familiar
  • OS: Windows 8
Re: Serious help with BAT?
« Reply #44 on: September 02, 2009, 05:13:41 AM »
Lol.

If Mother.see Me.shakeBaby then CreateNew.WooshingSound
End If

I don't know what language that could be in. Vb maybe?
Where's MagicSpeed?
Quote from: 'matt'
He's playing a game called IRL. Great graphics, *censored* gameplay.