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
I would like to know how can I make an executable file wich deletes itself and the folder it's inside. I've tried launching cmd, making it wait for 3 seconds and then delete the directory, but it does nothing. The last lines of my code are:
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?
How can be find out which file is going to delete when, user provides command like DELETE or SHIFT + DELETE or by programmatically gives DELETE command. Well I know about FileSystemWatcher Class, but this class doesn't provide information before delete...
this i want to make my program to be executable..but i dont know how to make when i go to the file the makeproject1.exe is greyed out...what is the problem on this.
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.
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?
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
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.
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.
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)?
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:
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.
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..
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??
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
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
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.
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.