Your browser does not seem to support CSS. If images appear below, please disregard them.
Topic Options
Rate This Topic
#17819 - 10/08/03 10:52 AM Openning apps.
Joined: Jan 2003
Posts: 217
Ntd Offline
Member
Ntd Offline
Member

Joined: Jan 2003
Posts: 217
Melbourne, Victoria, Australia
Does anyone know how to open apps from vb?

Top
Sponsored Links
#17820 - 10/09/03 01:50 AM Re: Openning apps.
Joined: Mar 2002
Posts: 599
BackSlash Offline
UGN's Resident Homo
BackSlash Offline
UGN's Resident Homo

Joined: Mar 2002
Posts: 599
TN
i take it to mean you want to be able to open other programs from your program. if so, you use Shell(). for instance, if you wanted to open up notepad you would do Shell("C:\windows\notepad.exe") hope that helps


"It's better to burn out, than to fade away."
Top
#17821 - 10/09/03 03:25 AM Re: Openning apps.
Joined: Jan 2003
Posts: 217
Ntd Offline
Member
Ntd Offline
Member

Joined: Jan 2003
Posts: 217
Melbourne, Victoria, Australia
Thanks Mate!!!!!!!!!!!!!!!! thats what i wanted to do!!!!!!!

Top
#17822 - 10/09/03 05:20 AM Re: Openning apps.
Joined: Jan 2003
Posts: 217
Ntd Offline
Member
Ntd Offline
Member

Joined: Jan 2003
Posts: 217
Melbourne, Victoria, Australia
One more thin how do set parameters eg for ie, how do u make it open ie at a certain website?

Top
#17823 - 10/09/03 09:21 AM Re: Openning apps.
Joined: Mar 2002
Posts: 1,273
SilentRage Offline
DollarDNS Owner
SilentRage Offline
DollarDNS Owner

Joined: Mar 2002
Posts: 1,273
OH, USA
Include the commandline parameters in the Shell string like so:

Shell("C:\Program Files\Internet Explorer\iexplore.exe http://serialcoders.sytes.net")

In case there's confusion with commandline arguments and the path you can add double quotes:

Shell("""C:\Program Files\Internet Explorer\iexplore.exe"" http://serialcoders.sytes.net")


Domain Registration, Hosting, Management
http://www.dollardns.net
Top
#17824 - 10/10/03 05:45 AM Re: Openning apps.
Joined: Jan 2003
Posts: 217
Ntd Offline
Member
Ntd Offline
Member

Joined: Jan 2003
Posts: 217
Melbourne, Victoria, Australia
Shell (File1.Path & File1.FileName)
Why doesn't it work?

Top
#17825 - 10/10/03 06:52 AM Re: Openning apps.
Joined: Mar 2002
Posts: 1,273
SilentRage Offline
DollarDNS Owner
SilentRage Offline
DollarDNS Owner

Joined: Mar 2002
Posts: 1,273
OH, USA
I don't know. I have no idea what "File1" is.


Domain Registration, Hosting, Management
http://www.dollardns.net
Top
#17826 - 10/10/03 01:30 PM Re: Openning apps.
Joined: Oct 2003
Posts: 59
bosky101 Offline
Junior Member
bosky101 Offline
Junior Member

Joined: Oct 2003
Posts: 59
india
can u say..open an app and send keystrokes as default values as well...like sending to a programs log in .to make it an auto login ?


"it is the question ...that drives the answer..."
Keep Clicking,
Bosky
Top
#17827 - 10/10/03 04:25 PM Re: Openning apps.
Joined: Mar 2002
Posts: 1,273
SilentRage Offline
DollarDNS Owner
SilentRage Offline
DollarDNS Owner

Joined: Mar 2002
Posts: 1,273
OH, USA
yes, but there's easier ways to do that.


Domain Registration, Hosting, Management
http://www.dollardns.net
Top
#17828 - 10/14/03 09:29 AM Re: Openning apps.
Joined: Oct 2003
Posts: 17
alchemist Offline
Junior Member
alchemist Offline
Junior Member

Joined: Oct 2003
Posts: 17
melbourne Australia
Quote:
Originally posted by NTD .:
Shell (File1.Path & File1.FileName)
Why doesn't it work?
Shell (File1.Path & "\" & File1.FileName)
you can always debug.print File1.Path & "\" & File1.FileName
and see what its actually outputting...

also to send keys: sendkeys "{enter}"
or sendkeys "{home}+{end}"
sendkeys "abcd"

'Backspace {BS}
'Break {BREAK}
'Caps Lock {CAPSLOCK}
'DELETE {DEL}
'Down Arrow {DOWN}
'END {END}
'ENTER {ENTER} or ~
'Escape {ESC}
'Help {HELP}
'Home {HOME}
'Insert {INS}
'Left Arrow {LEFT}
'Num Lock {NUMLOCK}
'Page Down {PGDN}
'Page Up {PGUP}
'Print Screen {PRTSC}
'Right Arrow {RIGHT}
'Scroll Lock {SCROLLLOCK}
'Tab {TAB}
'Up arrow {UP}
'F1 - F16 {F1} - {F16}
'Shift +
'Ctrl ^
'Alt %

Top
#17829 - 10/15/03 01:52 AM Re: Openning apps.
Joined: Mar 2002
Posts: 599
BackSlash Offline
UGN's Resident Homo
BackSlash Offline
UGN's Resident Homo

Joined: Mar 2002
Posts: 599
TN
ntd, it should be Shell(file1.path & "\" & file1.filename)

you forgot the backslash in the middle. also, you have to make sure a file is actually selected in the file list box.


"It's better to burn out, than to fade away."
Top
#17830 - 10/17/03 04:32 PM Re: Openning apps.
Joined: Oct 2003
Posts: 17
alchemist Offline
Junior Member
alchemist Offline
Junior Member

Joined: Oct 2003
Posts: 17
melbourne Australia
ahh...isnt that what i just said? o_O

Top

Member Spotlight
Crime

Crime
SC, usa
Posts: 506
Joined: March 2002
Show All Member Profiles 
Sponsored Links
Forum Statistics
Forums46
Topics46,466
Posts81,636
Members2,157
Most Online1,567
Apr 25th, 2010
Latest Postings
Top Posters(All Time)
UGN Security 39,630
Gremelin 7,195
§intå× 3,255
SilentRage 1,273
Ice 1,146
pergesu 1,136
Infinite 1,041
jonconley 955
Girlie 908
unreal 860