473,404 Members | 2,213 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

embed .exe file in to vb

hi there i'm created a windows application using vb.net but now i have an issue. My program works by running a .exe file from c:drive. Can i embed the .exe file in the cdrive to my vb program so when i compile it, its being compile into a single .exe file?


Thanks!
Jan 2 '09 #1
3 12453
nukefusion
221 Expert 100+
I guess you could if you wanted to. Assuming your using Visual Studio, right-click the project and choose "Add Existing Item", select your .exe. Once added, select it and go to Properties and then change the build action to Embedded Resource.

You'd then have an .exe embedded within an .exe. You'd have to do some fiddling around to actually run it though.

You might be better off just keeping the files seperate. To do this you could set the build action to content/copy always and run the seperate .exe file from the application directory.
Jan 5 '09 #2
hi thanks for your reply.

Just another question. i've tried embedding the .exe file into my .vb application. But i couldn't seem to get the path right to run my app? can u give me some guidance.

For example i would like the run the dnsredir.exe file i'm embedded.

Shell("dnsredir.exe", 1)

but it says file not found?
can you please help me with that?

Thanks! (:
Jan 7 '09 #3
lotus18
866 512MB
@beyrself
Use Application.StartupPath or Application.UserAppDataPath

For example i would like the run the dnsredir.exe file i'm embedded.

Shell("dnsredir.exe", 1)

but it says file not found?
can you please help me with that?
Instead of using the old vb Shell, try it in .net

Expand|Select|Wrap|Line Numbers
  1. System.Diagnostics.Process.Start()


Rey Sean
Jan 7 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Wolfgang Schwanke | last post by:
Dear usenet, I'm having the following small problem. I've been ask to add some Quicktime panoramas to a website. The author of the panoramas has made two versions of each: One in MOV format,...
3
by: Tony Sutton | last post by:
I have this following code in my html file: <object classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#...
0
by: Anna | last post by:
Hi all. I don't know if I should ask this question here or on html group. I'll try. I have an embed element whose src is a big SVG file. The width and height of embed are set to 100%. When the...
3
by: M | last post by:
Hi Folks, Does anyone know how to embed a file into a resource in C#? You seem to be able to embed Icon, Bitmap, Cursor's & Strings. But how do you embed a file??? In VC++ version 6 you...
2
by: benmourra | last post by:
Hi all, I'm trying to create a web page using VS2005, ASP.NET 2.0, that will allow me to choose from a list of media files on my computer and then play my selection within an embedded Windows...
3
by: abrtlt | last post by:
I would like to have a web page in which, when the user clicks on any of several specific elements, a specific audio file is played, without reloading the page. The specific audio file name is...
8
by: CodeLeon | last post by:
Hi, All. I am creating a setup program. The way it works is that the user creates their setup info, my program generates the C# code for a setup executable, embeds the xml file containing the info...
6
by: qualitychecker | last post by:
Hello thanks for your help.. I try to reference a PHP module from within a HTML file, see below ---------------------------------------- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">...
0
by: VigneshS | last post by:
Hi, I am a newbie to Globalization and Localisation Concepts. I tried almost all the methods of the Globalization concepts. But i cannot be able to embed a text file within a Resource. ...
2
dream party
by: dream party | last post by:
Inserting a Flash (SWF, FLV) file into HTML web page is already an old and familiar thing to all of us. It is a rather non-flexible thing that just to edit some options in the template. However, I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.