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
January
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
【煦色韶华问佛】
by lmnopq127978
Today at 03:38 AM
【听,梦里雪落的声音】
by lmnopq127978
Today at 03:37 AM
那天,她留下了眼泪
by lmnopq127978
Yesterday at 04:09 AM
繁荣如锦,似梦似幻
by lmnopq127978
Yesterday at 04:08 AM
爱笑
by lmnopq127978
Yesterday at 04:07 AM
江南小镇
by lmnopq127978
Yesterday at 04:07 AM
癫痫病能够吃油炸食品吗
by lmnopq127978
Yesterday at 01:16 AM
癫痫病的饮食应当留神哪些
by lmnopq127978
01/25/15 07:09 PM
Latest Reviews
Topic Options
Rate This Topic
#17819 - 10/08/03 06: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 09: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 11: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/09/03 01:20 AM 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 05: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/10/03 01:45 AM 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/10/03 02:52 AM 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 09: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 12:25 PM 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 05: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 09: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 12:32 PM 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: 02/28/02
Posts: 7193
Forum Stats
2153 Members
46 Forums
36654 Topics
71824 Posts

Max Online: 1567 @ 04/25/10 05:20 AM
Top Posters
UGN Security 29807
Gremelin 7193
§intå× 3255
SilentRage 1273
Ice 1146
pergesu 1136
Infinite 1041
jonconley 955
Girlie 908
unreal 860
Newest Members
claralobo, cdefgh368568, HushHush, golqm, Tim050
2152 Registered Users
Who's Online
1 registered (lmnopq127978), 258 Guests and 238 Spiders online.
Key: Admin, Global Mod, Mod
Latest News


Donate
  Get Firefox!
Get FireFox!