how can I run an exe file after open it in VB6?

I make BAT file and I can open exe file by VB code, but I need run exe

Page 1 of 1

4 Replies - 6216 Views - Last Post: 22 June 2009 - 08:23 PM Rate Topic: -----

#1 alisabzevary  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 16-June 09

how can I run an exe file after open it in VB6?

Posted 16 June 2009 - 11:01 PM

I make BAT file and I can open exe file by VB code, but I need run exe file after open it. if I can press Ctrl+S in exe file environment then exe file start to run. My exe file is a program in LINGO8 software. please give me your idea.
Is This A Good Question/Topic? 0
  • +

Replies To: how can I run an exe file after open it in VB6?

#2 raziel_  Icon User is offline

  • Like a lollipop
  • member icon

Reputation: 464
  • View blog
  • Posts: 4,255
  • Joined: 25-March 09

Re: how can I run an exe file after open it in VB6?

Posted 17 June 2009 - 12:05 AM

check this out

excample for how to run IExplorer:

Shell "C:\Program Files\Internet Explorer\iexplore.exe "


This post has been edited by NoBrain: 17 June 2009 - 12:13 AM

Was This Post Helpful? 0
  • +
  • -

#3 alisabzevary  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 16-June 09

Re: how can I run an exe file after open it in VB6?

Posted 22 June 2009 - 04:42 AM

View PostNoBrain, on 16 Jun, 2009 - 11:05 PM, said:

check this out

excample for how to run IExplorer:

Shell "C:\Program Files\Internet Explorer\iexplore.exe "



I need send "Ctrl+S" to an open exe file
please send code if you have idea about that
Was This Post Helpful? 0
  • +
  • -

#4 firebolt  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 92
  • View blog
  • Posts: 5,561
  • Joined: 20-February 09

Re: how can I run an exe file after open it in VB6?

Posted 22 June 2009 - 05:25 AM

Sorry but we don't just give people the code whenever they feel like it. Could you please show us the code that you have so far, so we can help you and get a better understanding.
Was This Post Helpful? 0
  • +
  • -

#5 alisabzevary  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 16-June 09

Re: how can I run an exe file after open it in VB6?

Posted 22 June 2009 - 08:23 PM

View Postfirebolt, on 22 Jun, 2009 - 04:25 AM, said:

Sorry but we don't just give people the code whenever they feel like it. Could you please show us the code that you have so far, so we can help you and get a better understanding.


Shell("D:\BAT")
Activate("LINGO-LINGO model-LINGO1")
Sendkeys("^S")

I prepare a BAT file and put into as follow:
CALL D:\LINGO.lg4
after run this VB code I see Compile error "Sub of Function not defined"
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1