Remove The File After 15 Minutes?
Dec 21, 2011I'm making a practice test program that creates a file after 5 login fails. I want it to remove the file after 15 minutes, how can I do this?
View 5 RepliesI'm making a practice test program that creates a file after 5 login fails. I want it to remove the file after 15 minutes, how can I do this?
View 5 RepliesI am looking for formula that is accurate in converting Minutes to Decimal Minutes i.e 30 minutes is 50 Minutes in Decimals so 1.3 hours is 1.50 and not 1.5 i have used Minutes/60 but it is not accurate as some times i have to Multiply the result by 100 and some time 1000 to get correct results based on single digit Try 1/60, 10/60 99/60 or 100/60.What would be the most efficient and correct way to Convert the time into Minutes ?
View 10 RepliesI've created txt file on vb. I need time function that every 30 minutes create file and filename will be date and time that file was created.
View 4 RepliesI have an application that provides a countdown for 60 minutes and I'm currently using the win form timer and it updates some labels and a progressbar. Now I have to change this to be a countdown for 360 minutes. Will the win form timer be sufficient or should I implement a Timers.Timer instead?
View 6 RepliesI would like to know how to remove part of a text file between two points
For example, say i have a text file that contains:
Code:
START
<LOWER_LINE>
-4.920156 -2.543200 4.277774
[Code].....
I want to write directly to the source file. The files I want to edit are only about 30KB
i need to be able to check files in a folder to check if any has spaces in there names and then remove the spaces.
So, Aero Vista.jpg will become AeroVista.jpg
is there a way to remove the vocals of an mp3 file using C#/VB?
like is there a class (or downloadable library) that helps us do something like this: new Mp3File("song.mp3").RemoveVocals().SaveTo("song edited.mp3")
Btw it doesn't have to be specifically mp3, if it can handle at least 1 type of audio file i'm good to go
I have a textbox that the user must put the path and file name into like so
"E:configsserver2config.cfg"
I wrote and tested the code I did to grab the "E:configsserver2" part without the file name so that I could reference other files such as images within the same directory level. I will post only the code that is meant to grab the path as it's where the problem is. So don't worry if you don't see any dim statements for variables as they are there.
'Get file and path from textbox
fileV = loadTB.Text
'The starting index of the string counting back to the begining
countDown = fileV.Length - 1
'Get the path of the file so that we can find the images
[Code] .....
I want to remove a csv file column from vb.net , or i want to select specific columns from the csv file for storing the records into database. the problem is , csv file don't have header text.i changed the text file into csv, so i didnt add the header, is any option for adding the header with the csv file at run time.
View 1 RepliesI am reading all files from a directory and writing them to a text file. This is working just fine.[url]...
How would i go about removing the file path from the list of file names in the text file.
I was wondering if anyone could help me with the following problem:
I am working with a csv file (it contains two columns of numbers), which as a last character has a comma and I would like to remove that comma from the file.
A file I'm writing to contains a carriage return and line feed at the end that I want to remove. I'm working on this, but not there yet.[code]...
View 1 RepliesWhat i have realized is that when you use My.settings, a XML File is put with your EXE when your project is Published.
What you can also do is just Open that File and Change the Variable "Register" From "False" to "True"
How can i do what Most Registration files do, and make the XML File go away and Create a Unwritable file, where the values cannot be changed.
I have two text files. The fields in each text file are separated by a space (" "). Some of the fields in column 1 of file 1 match the fields in column 1 of file 2. However the third column in file 2 is a numeric field. What I wish to do is check every field in file1 against the field in file 2, and if the number is 1 then remove the row from file 2, if the number is > 1, then subtract one from it.
I have the following coding so far.
Dim lines1 As New List(Of String)(IO.File.ReadAllLines("File1"))
Dim lines2 As New List(Of String)(IO.File.ReadAllLines("File2"))
Dim values As New Dictionary(Of String, Integer)()
[Code]....
I'm trying to open an existent file save a bytes in the start of it to later read them.
How can I do that? Because the "&" operand isn't working fo this type of data.
I'm using Encoding.UTF8.GetBytes("text") to convert info to bytes and then add them.
My user can export a ".doc" file but when VB.NET writes to this file it uses "" and "," characters at the end of each sentence. I was wondering if there was a way of actually appending the exported file to remove these characters?
View 8 RepliesI am creating a program which can store files, and I display their names in a list box, with their contents in another list box. My program can read the file names but has the file extension ".txt" added to all of them, meaning that the program cannot read the contents. How can I remove ".txt" from them? [code]
View 3 RepliesThis is my code to remove a file from a selected USB device:
Dim fileInfo As IO.FileInfo = CType(ListBox5.SelectedItem, IO.FileInfo)
My.Computer.FileSystem.DeleteFile(fileInfo.FullName, CStr(ListBox4.SelectedItem) & fileInfo.Name)
ListBox6.Items.RemoveAt(ListBox6.SelectedIndex)
But i keep getting this error:
Overload resolution failed because no accessible 'DeleteFile' accepts this number of arguments.
How can I remove lines from a text file at the index of a listbox's selectedindex?
View 4 RepliesI have text file that need to read until *+*+* Top *+*+*and write the content until *+*+* Top *+*+* but i dont want to write *+*+* Top *+*+* this line[code]...
View 3 RepliesI have lines like this in my text file
10.0 28 Black (2 01.00 15.0) [1 06.81 58.3] 114111 -81725 191654 -41066
10.0 28 Black (2 01.00 15.0) [1 06.81 58.3] 114111 -81725 191654 -41066
11.0 28 Black (2 06.00 01.0) [T375 ] 135111 -46725 188611 35775
[Code]....
I want to remove all the line which contain [Txxxxx..] and place it in another file. i want to be do like cut and past. Is that possible. Can we remove lines in text files?
Let say, a file has the following attributes: ReadOnly, Hidden, Archived, System.
How can I remove only one Attribute? (for example ReadOnly)[code]...
i need to be able to check files in a folder to check if any has spaces in there names and then remove the spaces.
View 4 RepliesI have a csv file and it has some special characters that blocking to insert data into a SQL server. How I can remove the characters before it dumps data into SQL.
View 3 RepliesI am writing a program using VB6 and i can write and read to a file using the System.IO.StreamWriter and System.IO.StreamReader. Now i am trying to delete an entry in the file and shift the remaing entry's up to prevent a blank line.[code]...
View 2 RepliesIn Debug mode my application compiles to a 4MB .msi file plus setup.exe at 368kb, and the installed app includes the .pdb file @ 2.3MB. If I change to Release mode I'd expect to avoid including the debug symbol file and considerably reduce the .msi size, but surprisingly the .msi goes up to 4.45MB and setup.exe to 420kb. Am I missing something here? I want to reduce the upload size of the application by avoiding the unnecessary debug file, but clearly I've misunderstood what's happening or maybe what I can do.
View 1 RepliesIs there way to remove the last 14 characters (last line) from a 1 MB text file without reading in and writing out every single line?
View 1 RepliesHow do I remove new line and whitespace when using xmlWriter to create an XML file? I would like the file to be as small as possible.
View 8 RepliesI have found that to get part of my program to do what i need it to do without causing proplems is to remove the file extention, do what needs to be done with the files and then put the file extention back.
[Code]...
Ive been trying to remove text from a txt file, the txtfile contains every item in the listbox, when a user selects a item then push's button3 it deletes it from the lsit and well Ive been trying to get it to delete from file to using
[Code]...