UGN Security Forums
My ProfileMember DirectoryLogin
Search our ForumsView our FAQView our Site Rules
View our CalendarView our Active TopicsGo to our Main Page

UGN Security Store
 

Network Sites UGN Security, The GoNix Initiative, Elite Web Gamers, Back of the Web, EveryDay Helper, VNC Web Design & Development
August
Su M Tu W Th F Sa
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
Sponsored Links
Latest Postings
Amazon Gift Card Generator/KeyGen?te
by Gecko666
08/22/14 09:21 AM
Latest Reviews
Topic Options
Rate This Topic
#17819 - 10/08/03 03:52 AM Openning apps.
Ntd Offline
Member

Registered: 01/21/03
Posts: 217
Loc: Melbourne, Victoria, Australia
Does anyone know how to open apps from vb?

Top
Sponsored Links
      
#17820 - 10/08/03 06:50 PM Re: Openning apps.
BackSlash Offline
UGN's Resident Homo

Registered: 03/16/02
Posts: 599
Loc: 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/08/03 08:25 PM Re: Openning apps.
Ntd Offline
Member

Registered: 01/21/03
Posts: 217
Loc: Melbourne, Victoria, Australia
Thanks Mate!!!!!!!!!!!!!!!! thats what i wanted to do!!!!!!!

Top
#17822 - 10/08/03 10:20 PM Re: Openning apps.
Ntd Offline
Member

Registered: 01/21/03
Posts: 217
Loc: 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 02:21 AM Re: Openning apps.
SilentRage Offline
DollarDNS Owner

Registered: 03/04/02
Posts: 1273
Loc: 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/09/03 10:45 PM Re: Openning apps.
Ntd Offline
Member

Registered: 01/21/03
Posts: 217
Loc: Melbourne, Victoria, Australia
Shell (File1.Path & File1.FileName)
Why doesn't it work?

Top
#17825 - 10/09/03 11:52 PM Re: Openning apps.
SilentRage Offline
DollarDNS Owner

Registered: 03/04/02
Posts: 1273
Loc: 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 06:30 AM Re: Openning apps.
bosky101 Offline
Junior Member

Registered: 10/01/03
Posts: 59
Loc: 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 09:25 AM Re: Openning apps.
SilentRage Offline
DollarDNS Owner

Registered: 03/04/02
Posts: 1273
Loc: OH, USA
yes, but there's easier ways to do that.
_________________________
Domain Registration, Hosting, Management
http://www.dollardns.net

Top
#17828 - 10/14/03 02:29 AM Re: Openning apps.
alchemist Offline
Junior Member

Registered: 10/14/03
Posts: 17
Loc: 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/14/03 06:52 PM Re: Openning apps.
BackSlash Offline
UGN's Resident Homo

Registered: 03/16/02
Posts: 599
Loc: 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 09:32 AM Re: Openning apps.
alchemist Offline
Junior Member

Registered: 10/14/03
Posts: 17
Loc: melbourne Australia
ahh...isnt that what i just said? o_O

Top

Featured Member
Registered: 08/20/13
Posts: 1
Forum Stats
2148 Members
46 Forums
34008 Topics
69175 Posts

Max Online: 1567 @ 04/25/10 02:20 AM
Top Posters
UGN Security 27170
Gremelin 7192
§intå× 3255
SilentRage 1273
Ice 1146
pergesu 1136
Infinite 1041
jonconley 955
Girlie 908
unreal 860
Newest Members
Gecko666, defghi795767, Devo60, ali, lavos
2147 Registered Users
Who's Online
1 registered (Tim050), 301 Guests and 313 Spiders online.
Key: Admin, Global Mod, Mod
Latest News


Donate
  Get Firefox!
Get FireFox!