Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > running more than just an .exe file


Reply
 
Thread Tools Display Modes
  #1  
Old 02-07-2001, 03:22 PM
restfern
Guest
 
Posts: n/a
Question running more than just an .exe file


I've asked this before, so i apologise in advance. I've just lost the code I need. I want to run a registry file when the user ticks a checkbox. I know that you can't use Shell on it's own, and that the Replace() function comes into it as well i.e.

run_my_exe = Shell ( Replace ()

it's just I don't know what the parameters should be inside the Replace function.
I hope you can help, and don't get annoyed at me for asking the same question twice.
Thanks a million for any replies.

Knows a little about a lot
Reply With Quote
  #2  
Old 02-08-2001, 07:50 AM
Octavo
Guest
 
Posts: n/a
Default Re: running more than just an .exe file

ummmmm.... I don't know about your prior question, or about replace, but try looking up the ShellExecute API. ShellExecute is similar to Shell, except that it uses the program associated with the extention to run it.

Reply With Quote
  #3  
Old 02-11-2001, 08:33 AM
restfern
Guest
 
Posts: n/a
Default Re: running more than just an .exe file

Thanks for the info on ShellExecute. It works just nicely.

Knows a little about a lot
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->