Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / Command in visual basic that is equivelent to 'execute file'

Author
Message
Wik
21
Years of Service
User Offline
Joined: 21st May 2003
Location: CT, United States
Posted: 25th Nov 2003 00:00
^^

I have been trying to find a command that runs another application from vb6.0 and i cant find anything

All help would be greatly appreciated


I wanted to learn C++ but then I started having nightmares.
I would scream at night, "AHHHHH!!! THE SEMI-COLONS"
John Y
Synergy Editor Developer
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: UK
Posted: 25th Nov 2003 00:29
Yep, Shell is the command to use.

Level Maker 3D: Download from www.levelmaker3d.co.uk/levelmaker3D.asp
DarkBasic Professional Editor: Download from www.levelmaker3d.co.uk/ide.asp
Wik
21
Years of Service
User Offline
Joined: 21st May 2003
Location: CT, United States
Posted: 25th Nov 2003 00:39
I should have thought of that
Thanks for the help!


I wanted to learn C++ but then I started having nightmares.
I would scream at night, "AHHHHH!!! THE SEMI-COLONS"
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 25th Nov 2003 00:43
damn, you boys beat me to it!

Shell it baby

-RUST-
Wik
21
Years of Service
User Offline
Joined: 21st May 2003
Location: CT, United States
Posted: 25th Nov 2003 01:21
One last thing,
What is the equilivent of "cl$()" in vb?


I wanted to learn C++ but then I started having nightmares.
I would scream at night, "AHHHHH!!! THE SEMI-COLONS"
the_winch
21
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 25th Nov 2003 01:24
Command I think.

dbpro : p166mmx @ 233 : 256mb : sb 128pci : sis onboard
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 25th Nov 2003 01:24 Edited at: 25th Nov 2003 01:27
aha that's a whole other ball game...

be right back



this should get you going - modify sub main to do what you need, my code was specific for a certain program

-RUST-
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 25th Nov 2003 23:30 Edited at: 25th Nov 2003 23:31
no harm no foul actually the function code was glommed off the net somewhere, or actually it was in MS Help!! LOL the sub was just quick and dirty to get at it. I posted it because I knew it worked from having used it - but you are right about the tweaks and improvements, so anyone reading this feel free to fix and use however you choose (hey that rhymed- ) I don't code much these days in vb6 so I never really decided to fix or tweak that code CR=Lazy....

Thanks for the input

Edit/PS - the mid returns variant, mid$ returns string, is how I understand it - like I said I didn't write the code LOL

-RUST-
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 26th Nov 2003 00:29
Quote: "aha that's a whole other ball game..."


I just use command()

"Help! My keyboard is stuckkkkkkkkkkkkkkkkkkkkkkkkkkkkk"

Mercenaries in Space demo @ http://www.davidtattersall.me.uk
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 26th Nov 2003 01:41


-RUST-
MicroMan
21
Years of Service
User Offline
Joined: 19th Aug 2003
Location: Stockholm, Sweden
Posted: 26th Nov 2003 02:45
Well, to the original poster -- say hello to Windows API programming. Mouahahahaha!



Put that in a general module, and then you can call on ShellExecute, like for instance:



This opens your web browser to the Google site.



-----
They SAID that given enough time a million monkeys with typewriters could recreate the collected works of William Shakespeare... Internet sure proved them wrong.
-----

Login to post a reply

Server time is: 2024-09-20 20:29:09
Your offset time is: 2024-09-20 20:29:09