Make An Executable File Wich Deletes Itself And The Folder It's Inside?
May 25, 2011
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:
So I have been working on this small project for a little while now Basically I need this program to be able to delete a single folder or multiple folder depending on the text in the textbox.So far, I can do the single file just fine, this is the code for that.[code]Simple as it sounds...I haven't figured it out...then again I am pretty new to VB, being I started programming in it literally 2 weeks ago.I am guessing that I have to set a variable for the textbox...which leads me to believe I need to use something other than a textbox to do this...I was thinking of using a DataGridView...I not sure how I would make it check if there is anything in a cell then delete it if there is.
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 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?
To open a pdf file in my vb.net application I have used the following code. This is working fine while running from code. But when I am trying to package it through setup project and run in the installed application, file not getting opened. I am adding my UserGuide.pdf file inside Database folder in Application folder of setup project.
Try Dim lStrHelpUserManualPath As String = "" lStrHelpUserManualPath = Application.StartupPath [Code] .....
I have an FTP connection with around 50 folders in it, I have one file that I need to upload to all of these folders, how can I get the list of these folders in there so I can go ahead and upload the file automatically? The folder # keeps increasing and I can't manually keep uploading the file to each folder.
I am confused on saving a file to a certain folder. I know how to save files and what not but what I can't figure out is this:I right clicked my project name in VS2010 -->New Folder and added a new folder. Now this folder shows up in my Solution Explorer. How to I reference this folders location?
I am trying to make a program that deletes all setting made by using the SaveSetting function. I don't use the MySettings class as it makes a setting for each user. This is basically what I need it to do:[code...]
I would create a launcher for a game that is located in \folder\executable.exe I tried using the command shell, but the game does not start because it needs all the files found in folder.
mbedde resources writing to temp folder and they all works fine but i have the exe that requires the files in a folder example folder1 , my path isMy.Computer.FileSystem.SpecialDirectories.Temp for all the files im using but how can i addMy.Computer.FileSystem.SpecialDirectories.Temp.folder1to string so it creates the folder and i can write the two files to this one instead of regular temp ????
I'm making an app that allows user to select some files. But, I want it to be made inside the app, without the need of a 'OpenFileDialog' or so.My first thought was a ListView control, but I really don't know how to use it or even how to make it get that from file system.Then I thought on a ListBox, but it seems to have so few features.There is a way to make an 'explorer-like' file browser inside the app? It doesn't need to contain all the explorer features, just an details view (the one that looks like a list, but with columns) and a icons view (similar to windows XP).
i want to make a virus remover/scanner tht deletes files og scans for virus.. Just reply i you know some of codes or if you have a project.VB2008/2010..
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.
The specific features I want to produce is it doesn't place on the form, it places in the little box at the bottom and when CustomUserControl.Show() is called it shows as a dialog boxI'm sorry if I misspelled something or my grammar is wrong, I've never done well in those subjects.
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 am developing a vb.net application my question is how can i access a folder inside my application ?? for example i created a folder Myfold where i store some .doc files and i want to read them from my code.
I am trying to get my vb.net application to look inside a folder on the web server and then let me know whether there are files in there or if the folder is empty.