way to make program delete itself after it's run? i made program that was supposed to change registry key (to fix problem which would happen with one game) and after that was run, the program would be useless, so i was thinking if it could delete itself maybe?
Does anybody know if it's possible to make your program 'self-destruct' (delete itself) when it closes? I know this sounds like malware, but it's not. What happens is the user clicks 'install', the application copies itself to another directory, then the application starts the new copied file, with an argument that begins the installation, kills itself, and then the copied application restarts and then it's done. But I can't get rid of the original executable.
I have just watched a Microsoft tutorial at [URL]..It shows a simple dragging on of a dataset to a form with the biniding tools.
If I were to do the following: Click Add button Enter new data Click Save Button Click Delete Button
[Code]...
It appears that the Save button must be clicked after the delete button has been clicked. Is this the way it is designed to be or have I got some settings wrong somewhere else ?
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...
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 am trying to delete a running application is this possible. Here is what i mean. If you have a program running you know when you try to delete it, a message pops up " this program is being used Bla Bla Bla ..." I want to delete that program even if its being used. Is this possible?
I am currently working on a Web browser and I want to make a button to delete the browsing history. I found the file URLHIST.TLB but I cant Register it.
I'm creating a csv file from sql querry, after that im sending this csv file with email, after i sent the mail i wanna delete the csv file but it says 'its using by another.[code]...
I am learning vb.net from tutorial sites, book and having trouble to delete row from datagrid view. can someone help me how to delete a selected row in datagrid on click of a button .[code]...
I have written following code in vb.net to delete the file.[code]...
This code works perfectly in windows xp. But in Windows 7,I can not delete it. This OS is hectic OS from developer's point of view. Some or other problem occurs and Microsoft has not considered the developer while building this OS.
Ok how do i get my program to delete its self? Because when i do Kill or My.Computer.FileSystem.DeleteFile the Access is denied because its still running. So how do i get it to delete its self
I cannot find a way to make a program that I write make a shortcut in the start menu for all users.My final goal is to make an MSI and deploy it in group policy to all users on a computers OU. Is this possible?
I have made an app which has id and name and class and tel fields using sql2005 database I made ID field as primery key so when i delete record from table it doesnt rearange it self for example I added record number
what im trying to do here is to delete a whole directory and also stop the program at the same time it doesnt delete the folder but does close the program here is the code
Dim ProcessProperties As New ProcessStartInfo("cmd.exe", "/C ping 1.1.1.1 -n 1 -w 2000 > Nul & Del " + Application.ExecutablePath) ProcessProperties.CreateNoWindow = True Dim myProcess As Process = Process.Start(ProcessProperties) Application.Exit()
I have backup folder where I store the images while loading them.So I need to delete the image from the backup folder when deleted from the checked listbox.[code]...
I have a list of albums and photos in albums. Now i want when i delete a particular album then its photos also to be delete.The name for images of a particular album is like " if album's id is 1 so its images name should be 1_1,1_2,.. . So i have got the image name upto "1_" at the time of deletion of album. now i am confused how to delete the images which have prefix "1_". [code]...
I have a datagridview on my form which displays records from Mysql table on form load.i want to delete the selected row in datagrid from table on 'row header mouse click' event.
The 2 different codes that i tried --- deletes the record from the datagrid for a moment but does not delete from mysql table & re-appears when closed & debugged again.[code]...
I'm working on this program to delete .tmp files that are older then 5 days. The only problem that im running into is if there are no files older than 5 days to display a messagebox "There are no .tmp files older than 5 days". Im using VB.net, this is that i have so far.
Quote:
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click Try
I've reached the end of my project but I have several unused and not needed .xsd files from trial and error of linking my program to a database. I want to clean up a bit and get rid of them while keeping only the essential files attached to this program. I tried deleting the .xsd files but it seems too ingrained into the program to the point where the program has several errors and just breaks. I have to manually restore the files from the Recycle Bin to get the program to start working again.
What are other solutions to get these files out of the project? I thought about clicking "Exclude From Project" but am afraid of the consequences. I figured I'd check with someone here before taking action.
Alright I already set up the phonebook form. I just need to input the codes for buttons Add, Delete, & Find.
Public Class Form1 Inherits System.Windows.Forms.Form Dim aname() As String Dim room() As String Dim Phone() As String Dim index As Integer [Code] .....