Persistent File Change Within An Executable?
Jan 25, 2011
I was wondering if it is possible to have persistent changes to resources in an executable. I am using VB 2010. I don't know how to be much clearer than that but I will try.
> User opens program and picks 'File A'
> 'File A' is now copied into the executable, thus storing it forever (or until deletion of .exe
> .exe is now slightly larger because 'File A' is inside the program
> User can extract or delete 'File A'
View 2 Replies
ADVERTISEMENT
May 17, 2012
I have a program that outputs a file. I want the user to be able to just double-click the output file and launch the program, just like Word and Excel. In Word for instance, one doesn't necessarily have to open WORD then click on File--> Open and locate another Word doc. He can just go to the folder and open the Word doc. I want to implement the exact scenario in my program.
So far I have tried creating TextFile and added it to the Resources. On FormLoading, I simply I stream-read the Resouce file, but I can't write to the Resource on FormClosing, since the Resource is ReadOnly. Also, the Resource is built & compiled so I suppose you can't add anything to it at run time.How you lunch an output file without launching the Executable program that created it?
View 1 Replies
Aug 3, 2011
i'm using VB 2010 Express and I want to change the Executable Version Info?
View 2 Replies
Jul 18, 2011
How do you change the build executable image for your program? Right now mine looks like a blank form. I would like to add a custom image.
View 2 Replies
Jun 1, 2009
I have an executable that I was able to get working on all XP machines by registering all the .dll's associated with it.On Vista, however, I go through the exact same registration process but right when I open the executable it goes to a "WindowsApplication1 has stopped working" dialog. I registered the DLLs in the SysWOW64 folder. I also ran Dependency Walker which came up with IEFrame.dll as flagged, don't know if that is relevant though.
View 6 Replies
Feb 17, 2009
I'm using visual studio 2008 and I'm almost done on my project. My problem now is it's possible to convert aspx.net to an executable file?
View 1 Replies
Aug 20, 2009
I develop my application with VBNET2008 express and SQL server express 2005 but a little problem appears,my executable file is always READONLY.However,I make modifications in my code file,it stills unchangeable in the Executable File How can i do for this?
View 6 Replies
Sep 15, 2010
I'm trying to make a program that has command buttons, each running a different file. I have added some files so far, but I encountered a problem with a couple of them.
For example, I want to run Zuma's Revenge! right from the program, but it is not working. If I run the game from outside the program, it runs perfectly, but when I try running it from the program, it keeps saying "Zumas Revenge! - Adventure has stopped working."
What really confused me, is that the game is running normally if I run it from its folder or by using the shortcut, while from the program it isn't.I'm using Windows 7, with Visual Basic 2010 Express.
'Here's the code I'm using:
Private Sub Zumas_Revenge_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Zumas_Revenge.Click
Process.Start(My.Application.Info.DirectoryPath & "umas Revenge! - AdventureumasRevengeAdventure.exe")
End Sub
View 1 Replies
Nov 2, 2010
show me the steps to create a executable file of my project
View 3 Replies
Dec 28, 2011
How do i download a executable file like andrews done here with the image:[url] and would like to do get the response data and save that into a file instead of directly downloading it.Once you eliminate the impossible, whatever remains, no matter how improbable, must be the truth. - "Sherlock holmes" "speak softly and carry a big stick" - theodore roosevelt.
View 4 Replies
Aug 4, 2011
i need to run a dos command with parameter and write out on text file from my win form , i am not using shell command and the code is -
[Code]...
View 1 Replies
Jul 12, 2009
I am trying to start an executable file, example.exe. When I run this code I get the fallowing error.
Dim start As String
Dim location As String = TextBox1.Text
start= Shell(location & "example.exe", vbNormalFocus)
AppActivate(start)
Error:AppActivate(Result) --> Process '5476' was not found.
Every time I start the program I get a new Process error, like 5572 or 5252. What is the reason for this error? Also how can I error trap this so I can find out what the error really is.
View 13 Replies
Jan 12, 2011
Ok how do I add a text file to a codedom executable?
I don't mean adding a resource file like this ".resources"
I mean adding a textfile to the already existing resources.
View 1 Replies
Jun 21, 2010
Part of the app I am writing allows users to create an encrypted, password-protected output file that they can email safely to a central store. I can't have the users choose their own password for the encryption as the central store needs to access the contents of all the output files emailed to it. So there is one password that gets set within my vb app.I am worried that security will be compromised if the vb executable is somehow deconstructed? Is it possible to read the contents of an exe file (and thus find out the password)?
View 3 Replies
Sep 3, 2010
I am facing the following error in my VB.NET web app:
compiler executable file vbc.exe cannot be found.
I installed .net framework again and even the IDE, but this error remains.
View 3 Replies
Dec 16, 2009
i need some help in creating vb.net executable file that can be used on any other workstation
View 1 Replies
Apr 12, 2009
I am looking for a way to execute a file (executable) using GetManifestResourceStream. Either that or load it into a Stream or Byte. edit: I've noticed that sometimes you need certain names for this to work, so here is what I currently have:
[Code]...
View 3 Replies
May 21, 2012
I wonder if you can open a file .exe inside the Form. And this .exe file does not exit the Form. E.g. create a process that clicking on the button will open the Windows calculator, but the calculator will is stuck in the Form.
View 5 Replies
Dec 1, 2009
I would like to write a sub routine to kill an executable file called 'dfsvc.exe'. I'll call this subroutine when I exit my application to kill this file. When I exit my application this file is still running and takes around 15 minutes before it disappears. I would like to kill it to remove the delay.. The following code below doesnt work..
[Code]...
View 13 Replies
May 4, 2009
I want to know if possible to run executable file and delete itself without using script. Im creating uninstaller, i want to delete the uninstaller executable file after uninstallation finished. if that is what you want, just mark it as answer so that we can move on
View 2 Replies
Jun 28, 2010
I'm very new at using Visual Studio (about 3 days!). I want to create a project that I created into an executable file. The help menu states that I should go under the 'File' drop down menu and select 'Make' to convert into an .exe format. However, the 'Make' selection is not present under the 'File' drop down menu. How can I make a project into an executable file??
View 9 Replies
Jan 20, 2012
How to open Executable File in VB.Net 2005
View 2 Replies
May 12, 2011
I have created window service and one window application which is running as notify application in VS2010 using vb.net both are different project.
I want to pop up message in notify application when window service download some file to local system.
means,i want to send message to notify application when ever window service application download file to local system.
View 2 Replies
Oct 20, 2009
I installed my app on a computer. I can launch it from the shortcut and it works fine but I can't find the .exe file anywhere on the harddrive. The shortcut created by the install just shows the location of the shortcut. how I can find the executable for my app? I'm using VB8 Express
View 6 Replies
Oct 12, 2011
how to write/read a file in the same directory as the executable? I know how to read and write files, I just need to know how to read/write files in the same directory as the EXE.
View 19 Replies
Sep 24, 2010
I have a converted VB6 App that would draw irregular shapes on a PictureBox when I click on a button, and these irregular shapes would persist until I either close the App or erased the PictureBox to start the display anew.I converted my App to VB.Net to do the same, i.e. draw on a PictureBox again, but the drawn lines appear briefly and then, at the end of the drawing process, when my App returns control to the Operating System in wait for another event, the graphics disappear as if erased by the App (which I don't do of course).I have created a Graphics Object associated to my Picture Box as:
Dim CurrGraphics as System.Drawing.Graphics
CurrGraphics = PictureOut.CreateGraphics
I then use the DrawPolygon and DrawLine methods to add the irregular shapes I want:
CurrGraphics.DrawPolygon(CurrPen, Pts)
CurrGraphics.DrawLine(CurrPen, Pts(I).X, Pts(I).Y, Pts(I+1).X, Pts(I+1).Y)
where CurrPen is a defined Pen, and Pts is the Points() array with the coordinates of the displayed shape. Several dozens irregular shapes are drawn and then the subroutine stops, and returns to waiting for another request from the user.What could be the prime reason why graphics do not persist in a PictureBox, and are erased immediately after they are created ?
PS: I do not use the PainEvent of the PictureBox PictureOut, as in the example given in the VB documentation (below), as the display process is initiated by clicking on a button, and I cannot relate how to transfer control to the PaintEvent as below:
Private Sub Form1_Paint(sender As Object, pe As PaintEventArgs) Handles _
MyBase.Paint
' Declares the Graphics object and sets it to the Graphics object
[code]....
View 10 Replies
Sep 19, 2011
how to make the settings in my app persistent When i save in the previous run using this
my.Settings.setting_name= some_value
my.Settings.save()
when getting the values using this
some_value=my.Settings.setting_name
i still see the old values in the IDE settings options.How can i make the changes reflect even in the vs ide
View 1 Replies
Jan 31, 2011
i've created a usercontrol in a win forms project + the properties work as expected, but when i recreated my usercontrol as a win forms usercontrol class library, the properties changed at runtime aren't persistent.i tried adding a DesignerSerializationVisibility attribute to the property but that didn't work.
View 2 Replies
Mar 7, 2011
which net. framework is needed to let ane .exe file work on another computer??
View 4 Replies
May 15, 2011
The executable file in binDebug works great when used in a computer with Visual Studio on it. How would someone go about adding some of the libraries to it so it can be run on ordinary computers.
View 5 Replies