PPCGeeks Forums HTC Arrive HTC HD2 HTC Thunderbolt HTC Touch Pro 2 HTC Evo 4G HTC Evo 3D Samsung Galaxy S II Motorola Droid X Apple iPhone Blackberry
Go Back   PPCGeeks > Windows Mobile > Windows Mobile Development

Notices


Closed Thread
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-03-2009, 05:49 PM
Jmz's Avatar
Jmz
Jmz Software
Offline
Pocket PC: Thunderbolt
Carrier: Verizon
Location: Virginia Beach, VA
 
Join Date: Oct 2008
Posts: 986
Reputation: 4085
Jmz should be added to the payroll for their contributionsJmz should be added to the payroll for their contributionsJmz should be added to the payroll for their contributionsJmz should be added to the payroll for their contributionsJmz should be added to the payroll for their contributionsJmz should be added to the payroll for their contributionsJmz should be added to the payroll for their contributionsJmz should be added to the payroll for their contributionsJmz should be added to the payroll for their contributionsJmz should be added to the payroll for their contributionsJmz should be added to the payroll for their contributions
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Send a message via MSN to Jmz
Need some help with Visual Basic

So all I need to know is how to call an external program via VB. I am using the code below but it says file not found. The file is there without a doubt. I am thinking I am writing the right path to the file. I am just using the same path format that the registry uses. Thanks

Code:
Shell("\Program Files\Opera Mobile\OperaL.exe")
__________________
If you like my work feel free to donate
  #2 (permalink)  
Old 08-03-2009, 08:09 PM
elephant007's Avatar
domo arigato mr roboto
Offline
Pocket PC: Samsung Moment
Carrier: Sprint since Feb 11, 2002
 
Join Date: Jan 2007
Posts: 1,248
Reputation: 3584
elephant007 is still contributing even after becoming a VIPelephant007 is still contributing even after becoming a VIPelephant007 is still contributing even after becoming a VIPelephant007 is still contributing even after becoming a VIPelephant007 is still contributing even after becoming a VIPelephant007 is still contributing even after becoming a VIPelephant007 is still contributing even after becoming a VIPelephant007 is still contributing even after becoming a VIPelephant007 is still contributing even after becoming a VIPelephant007 is still contributing even after becoming a VIPelephant007 is still contributing even after becoming a VIP
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Need some help with Visual Basic

if you're trying to call this from the C:\ drive, you need to put (C:\Program Files\Opera Mobile\OperaL.exe")

alternatively you can
Code:
Dim OperaPath, WSHShell
Set WSHShell = WScript.CreateObject("WScript.Shell")
OperaPath = "C:\Progam Files\Opera Mobile\"
WSHShell(OperaPath & "OperaL.exe")
still would like to see more of your code though

Last edited by elephant007; 08-03-2009 at 08:21 PM.
  #3 (permalink)  
Old 08-03-2009, 08:25 PM
Jmz's Avatar
Jmz
Jmz Software
Offline
Pocket PC: Thunderbolt
Carrier: Verizon
Threadstarter
Location: Virginia Beach, VA
 
Join Date: Oct 2008
Posts: 986
Reputation: 4085
Jmz should be added to the payroll for their contributionsJmz should be added to the payroll for their contributionsJmz should be added to the payroll for their contributionsJmz should be added to the payroll for their contributionsJmz should be added to the payroll for their contributionsJmz should be added to the payroll for their contributionsJmz should be added to the payroll for their contributionsJmz should be added to the payroll for their contributionsJmz should be added to the payroll for their contributionsJmz should be added to the payroll for their contributionsJmz should be added to the payroll for their contributions
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Send a message via MSN to Jmz
Re: Need some help with Visual Basic

Quote:
Originally Posted by elephant007 View Post
if you're trying to call this from the C:\ drive, you need to put (C:\Program Files\Opera Mobile\OperaL.exe")

alternatively you can
Code:
Dim OperaPath, WSHShell
Set WSHShell = WScript.CreateObject("WScript.Shell")
OperaPath = "C:\Progam Files\Opera Mobile\"
WSHShell(OperaPath & "OperaL.exe")
still would like to see more of your code though

My bad. This is for a pocket pc app. I probably should have mentioned that in my original post
  #4 (permalink)  
Old 08-03-2009, 10:11 PM
elephant007's Avatar
domo arigato mr roboto
Offline
Pocket PC: Samsung Moment
Carrier: Sprint since Feb 11, 2002
 
Join Date: Jan 2007
Posts: 1,248
Reputation: 3584
elephant007 is still contributing even after becoming a VIPelephant007 is still contributing even after becoming a VIPelephant007 is still contributing even after becoming a VIPelephant007 is still contributing even after becoming a VIPelephant007 is still contributing even after becoming a VIPelephant007 is still contributing even after becoming a VIPelephant007 is still contributing even after becoming a VIPelephant007 is still contributing even after becoming a VIPelephant007 is still contributing even after becoming a VIPelephant007 is still contributing even after becoming a VIPelephant007 is still contributing even after becoming a VIP
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Need some help with Visual Basic

Quote:
Originally Posted by jmztaylor View Post
My bad. This is for a pocket pc app. I probably should have mentioned that in my original post
Might have been helpful

try
Code:
Run("Program Files\Opera Mobile\OperaL.exe")
or
Code:
Shell("Program Files\Opera Mobile\OperaL.exe")
is this vbscript that you're trying to run or mort script?
Closed Thread

  PPCGeeks > Windows Mobile > Windows Mobile Development

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 03:41 PM.


Powered by vBulletin® ©2000 - 2024, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0
©2012 - PPCGeeks.com