I'm trying to delete all the folders and subdirs (incl. files inside the folders) on a specific drive (ex. J:)However, since it's a root dir, i can't get it to work.I'm using Visual Basic Express 2008 on WinXP?
Public Class skdkMain Private Sub cmdDownload_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdDownload.Click Dim tar As String Dim dest As String
I'm trying to delete a number of records in a table from the last and forward. My idea is to use sql like this: delete top " & variable & " * from table where ID = something It gives me a general sytax error. Is it at all possible? Fuga. Edit: I also have the order by statement there. I just forgot to put it in the question.
I have a Form1 that is the main application form, that display certain data from a database. Then I have Form2 that add/delete data from a specific table in the database.My problem is, When I add data to the database, and save it, it work fine, But, it does not reflect on the main form, after I close Form2. Only when I exit the application, and open it again, it shows. Is there a setting or something I need to do to update/refresh the info added so I do not need to restart the application?
I have a series of files in different folders. Is there any way to open these files automatically search for lines containing fullBod and delete them completely? Then, close the file and save the changes? This tool should be able to process several files at once in a directory. clock [t= 83] SetSwitch [figure= fullBod switch= walk_across state= 01]
I'm trying to create a BMI Calculator with VB 2010. I have 2 TextBoxes for weight and length. I want to make sure that the user can only enter numeric (0123456789) values and also backspace and delete.
what is probably a very stupid and basic question, I'm new to Visual Basic I currently coding a program which deletes specific files that are part of a game. It finds and deletes all the files in the "program files" directorys but there are also certain files in My Documents that must be deleted.
The problem is the filepath to My Documents includes a username which is unique to different users, meaning on any other pc the program will not work.
The path on my computer is: C:UsersShaneDocumentsElectronic Arts
How can I get the program to find this folder on other computers? I'm totally lost.
I am writing a program that manipulates text file using console application. What I want to do is to delete 1 specific line based on the ID entered by the user.[code]My program should delete the line with the ID DR-02, but my program deletes items from DR-02 to DR-04 instead of DR-02 only.[code]
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 have the first part done, ... I can delete all the text before spacific text, ... now I need to delete all text after a spacific point in a string of text.
I'm making a better, and more simpler BandWidth Monitor, and I'm extracting the Bytes Recieved, ... but just the value, and leaving out all the rest of the text.
here ya go, check it out.
Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
I have a datagridview extracted from a csv file. It displays duplicate rows. How can I delete those duplicate rows from the datagridview? replies would be precious.
trying to get my hands wet on vs 2010 and i downloaded samples from ms site but when i tried to run some of the DB samples i received this sql error: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) any ideas how to get around on this?
I'm working on a program. It watches a folder for file changes. in certain cases, it needs delete the files in that folder. sometimes, it has this error:
The action can't be completed because the file is open in another program
is there a way to force delete a file? or this is not possible?
i press windows key sometimes when i writing somethng on my laptop.question : i want to disable windows logo key (windows key) and other key combos like Ctrl + Esc. i dont need disable all time(regedit method : HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionPoliciesExplorerNoWinKeys ) just a little time when i writing..
want to delete data from the database where the value of userID field is equal to the value inside txtUserID.Text. I have a problem about my query statement.
i have a problem with deleting certain information on my datagrid [Code] and this clears my whole grid, but i want it to delete only the selected row, what would the code be?
I am facing little trouble while deleting the listview subitems. I am also using try and catch method to handle the execption but i am keep on getting it.
The error which I am getting is: InvalidArgument = Value of '352' is not valid for index Parameter name: index
Code is given below. For i = 0 To lstListview.Items.Count - 1 Try lvi = lstListview.Items.Item(i) lviSubitem = lvi.SubItems.Item(3).Text If lviSubitem = "Error" Then lvi.Remove() [Code] .....
I was just wondering if it was possible to delete an item from a listview just knowing its text name (as in listbox.text) without the need to know the index or have it selected/highlighted? [Code]
I'm trying to delete all the files in the same folder that have the same name but different extensions, such as CurrentWallpaper.bmp, CurrentWallpaper.jpg, CurrentWallpaper.png, without putting them in a separate folder. How could I go about doing this? I tried doing
Dim bg As String = dir + "" + Login.UsernameTextBox.Text Kill(bg + "CurrentWallpaper.*")
but it didn't work. PS: I would also like to use the same technique for loading the image as a background image instead of having to do this:
Try If My.Computer.FileSystem.FileExists(Login.UsernameTextBox.Text + "/CurrentWallpaper.jpg") Then Me.BackgroundImage = Image.FromFile(Login.UsernameTextBox.Text + "/CurrentWallpaper.jpg") End If