Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

Visual Basic System Commands


ghost's Avatar
0 0

I'm making a VB app that will need to run some cmd commands. Basically what I'm looking for is the equivalent of "System()" (C++) for VB.

Anyone know if it exists ?


ghost's Avatar
0 0

Yeah its Shell(cmd)


ghost's Avatar
0 0

I thought that was to run something ?

like: Shell("one.exe")


ghost's Avatar
0 0

you could type "llama.exe -f -r -rawk" at the command line, and Shell() just runs cmd commands, so it should work (that's what a site from google said, so it might not be right)


ghost's Avatar
0 0

Didn't work :(


ghost's Avatar
0 0

How about making a batch file and running that with Shell()

It might work…


ghost's Avatar
0 0

Yeah that's my last resort. Thanks anyway :P

:D


ghost's Avatar
0 0

markupShell "cmd.exe /c PutYourCommandHere"

Simple as that :D


ghost's Avatar
0 0

Thanks man.


ghost's Avatar
0 0

The shell() command in VB is a little odd. It uses '/' instead of '-' for the arguments.