VS Relevant Tmp-file Missing After Disk-cleanup
Dec 23, 2010
After I ran a disk-cleanup (in my case AVG PC-TuneUp), the loading of my VB.net project gave error on a missing file.Changing the build-configuration (DEBUG->RELEASE->DEBUG) would recreate the file and all is OK. But I have basic configuration-info for the build, maybe in more complex cases some important details could be lost when the file gets deleted.I would think an information as critical as that, would be placed in the project folder, or be part of one of the many files that make up the project, but not in the temp-folder.
View 7 Replies
ADVERTISEMENT
Nov 29, 2010
I am trying to format xml entries I have so that I can use the xmltextreader without getting errors. I added a default header and footer in the event I notice there is no opening or closing tags. I remove illegal characters and check for unicode but I always find an issue where an entry slips in and gives the error: data at the root level is invalid and when I check that entry is slipped through the cleaning process or just has an unmatched tag somewhere.
Now I use
Dim stringSplitter() As String = {"</entry>"}
' split the file content based on the closing entry tag
sampleResults = _html.Split(stringSplitter, StringSplitOptions.RemoveEmptyEntries)
To split my xml into individual entries before I start the cleanup process.
Here are my default headers:
Private defaultheader = "xmlns=""[URL]"""
Private headerl As String = "<?xml version=""1.0"" encoding=""utf-8""?>" & vbNewLine & "<entry " & defaultNameSpace & ">"
Private footer As String = "</entry>"
Is there any tool in the .net framework that can detect and cleanup unmatched tags so that I can get this to work.
View 5 Replies
Nov 21, 2011
Can the "Disk Cleanup" operation on Windows be disabled / enabled with a registry setting using VB.Net?I am using Windows 7 32 bit ultimate edition. but as a temporary measure I do not wish to do so.
View 4 Replies
Feb 4, 2010
I'm a relative newcomer to VB.NET so please forgive any lack of knowledge.
I'm writing a web application that lists the contents of a directory in a listbox and then (in theory) opes the file that the user clicks on.
What I'd like to do is open the listed file in it's associated application (so if it's an excel file, open excel; if it's a notepad file, open notepad).[code]...
View 10 Replies
Aug 19, 2011
Hi, I need to program a simple Web Browser that can search for keywords and store relevant data in another file.I am facing a problem with authentication, mainly cookies and maintaining a session.So I read that Web Browser Control is based on I.E.? So may I know how are cookies and session handled?Do I have to implement them manually or are they stored and retrieved from the same folder as the one used in I.E? If so, if I delete the I.E.'s cache, am I also deleteing the cache of any Web Browser I make using Web Browser Control?
View 2 Replies
Mar 29, 2012
The following gives me an error when I try to open an Excel file if the value of lblFileName is different than the file on disk by differences of upper or lowercase letters.
[code]...
View 11 Replies
Jun 1, 2009
Given a filename, how do I efficiently search for that file on disk?
(Visual Studio 2005, i.e. .NET 2.0)
View 2 Replies
Apr 12, 2012
Is there an easy way to copy a resource audio file to disk?
it is very easy for an image file (in two steps for clarity):
Dim a11 As Image = My.Resources.Speaker
a11.Save(Image_Path & "speaker.png")
All the examples on how to do this with an audio file seem to be very long winded and there are a lot of short audio files that I want to copy.
There must be an easier way in a few lines of code.
View 2 Replies
Aug 1, 2008
Deleting a file is one of the controversial matters of computing. When a user deletes a file (removing it also from the Recycle Bin), they assume that the file is indeed deleted. However, what happens is that only the reference to that file is deleted, so the system can no longer remember where the file is located, but the file itself is very much intact.
I am looking for a way to delete a file permanently, the way e.g. the application Wipefile would do it, by applying successive overwrites (up to 30) over the actual position of the file on the disk. There must be a way to do this through code (I just presented an example that this has indeed been done ), so I'd like to know how to do it.
View 34 Replies
May 19, 2009
I'm using XamlWriter, XML Transform (with XSLCompiledTransform), and XamlReader to create deep copies of a user control with multiple user controls and lots of inheritance.
I have it working and am using it in my Print and Print Preview logic. The problem is that it's SLOW and I need to speed it up. Currently when the user selects Print Preview it takes about three seconds for the view to display. I need to reduce this to less than one second!
[Code]...
View 3 Replies
Jul 7, 2011
I am trying to programitally download a file from a https server, that uses cookies (and hence I'm using httpwebrequest). I'm debug printing the capacity of the streams to check, but the output [raw] files look different. Have tried other encoding to no avail.
Code:
Sub downloadzip(strURL As String, strDestDir As String)
Dim request As HttpWebRequest
Dim response As HttpWebResponse
request = Net.HttpWebRequest.Create(strURL)
request.UserAgent = strUserAgent
[Code].....
So I get the right size file downloaded, but dotnetzip does not recognise it, and the files that get copied out are incomplete/invalid zips.
View 3 Replies
May 22, 2011
I am trying to make a little app and I have a problem regarding embeded resources.I have added a dll file to my app resources and now I am trying to get that file back and write it to disk in a specific folder.
View 2 Replies
May 22, 2011
I am trying to make a little app and I have a problem regarding embeded resources.
I have added a dll file to my app resources and now I am trying to get that file back and write it to disk in a specific folder.
View 1 Replies
Apr 21, 2010
due to folder size limitation in Outlook/Exchange I must archive older mails on disk as *.msg files. So I am still able to search for <TEXT> in explorer.
I create the *.msg files by drag&drop a bunch of mails from the Outlook folder to the disk folder. Unfortunately the changed-at date displayed in explorer is the date of the file creation and not the sent-date as displayed in Outlook.
I know how to change the changed-at date using SetFileTime but I don't know how to extract the sent-date from the .msg file to use it.
My question is: how can I open (in VBA) a .msg file and extract the sent date of the mail?
View 3 Replies
Oct 21, 2010
My application uses structures that contain strings and arrays that I want to write to disk. I understand that I can create the fixed length data types in the structures by using "ReDim" and "String$", but my question is: Does VB reallocate the storage for the structure which includes these redimensioned members in-line (which would be necessary in order to write the contents to disk), or does it allocate heap and merely store a pointer in the structure?If only a pointer is provided, is there a straightforward workaround to allow me to create fixed length data types in a structure that could be written to a disk file?Or, Is there an I/O method that will handle the situation by recreating a contiguous buffer containing the structure before writing it to disk?
View 1 Replies
Feb 15, 2010
I have a hard problem here: how to cleanup the no use memory from the RAM?
[Code]...
I have a container that need to add many PictureBoxes with a quite large image, then i need to clear all PictureBoxes and create some new ones. like this: If I click the button some more times, my computer will be out of ram, whatever how many ram do your computer have.How can I dispose all the things used in Graphics and the controls in FlowLayoutPanel1 but not disposing the FlowLayoutPanel1 itself?
View 4 Replies
Mar 20, 2011
We currently develop and deploy various applications in our business. Over the weekend, I have decided to develop a multi-use installer and update programs based on conf and command line arguments, works great.
[Code]...
View 2 Replies
Jul 1, 2011
I'm developing a winform application. I want to take input from user (i.e. the user provides username) and use that input as part of filename and save to file.How do I check if the username provided by the user didn't contain windows' reserved characters. And what is the list of reserved characters for windows?
View 1 Replies
Oct 8, 2009
I am using BinaryWriter class to write a binary file to disk. When I invoke the Write method, passing an unsigned short value, it writes it in little-endian format. For example:
bw.Write(0xA000);
writes the value in the binary file as 0x00 0xA0. Is there a way to make BInaryWriter use Big Endian? If not, is it possible to create a new class, inheriting BinaryWriter and overload the Write function to make it write big endian?
View 2 Replies
Aug 29, 2010
I have a mySQL table(IMP_SCANS) holding the file, it's name and size for every document:
scan_1 blob
description varchar
filesize int
doc_no varchar
doc_date date
I managed to insert a file to the table. Now I need to save the file to disk.
So I have the code:
Dim conn As New MySqlConnection
Dim cmd As New MySqlCommand
Dim myData As MySqlDataReader
Dim SQL As String
Dim FileSize As UInt32
Dim fs As FileStream
[CODE]............
I all works fine up to the line: myData.GetBytes(myData.GetOrdinal("scan_1"), 0, rawData, 0, filesize) Where it says "Object reference not set to an instance of an object". I cannot figure out why I receive this error.
View 5 Replies
Jul 11, 2009
I ve a file in my computer.......
i want to knw the locetion of my file in the disk drive.....
View 16 Replies
Nov 29, 2010
I am trying to format xml entries I have so that I can use the xmltextreader without getting errors. I added a default header and footer in the event I notice there is no opening or closing tags. I remove illegal characters and check for unicode but I always find an issue where an entry slips in and gives the error:data at the root level is invalid and when I check that entry is slipped through the cleaning process or just has an unmatched tag somewhere. Now I use
Dim stringSplitter() As String = {"</entry>"}
' split the file content based on the closing entry tag
sampleResults = _html.Split(stringSplitter, StringSplitOptions.RemoveEmptyEntries)
to split my xml into individual entries before I start the cleanup process. Here are my default headers;
Private defaultheader = "xmlns=""http://www.w3.org/2005/Atom"""
Private headerl As String = "<?xml version=""1.0"" encoding=""utf-8""?>" & vbNewLine & "<entry " & defaultNameSpace & ">"
Private footer As String = "</entry>"
is there any tool in the .net framework that can detect and cleanup unmatched tags so that I can get this to work
View 1 Replies
Jun 8, 2009
I have this basic code for cleaning up old files
Imports
System
Imports
System.Data
[code]....
The only variable is the directory path. I have the directory created and there are a few .txt files in there that should meet the criteria. However, when I run it in SSIS, I get the following error (short version) "The element cannot be found in a collection."
View 1 Replies
Jan 19, 2012
The following code for DISC CLEANUP works on Vista and windows 7 but not on XP?
Drive = "C:"
_process = New Process()
With _process
[code]....
View 5 Replies
Mar 10, 2011
I've had 2008 express on this PC since it came out -- I basically have ONE important project that now is being troublesome.
Just had an "unhandled exception" and "configuration system failed" -- errors I've never received before and I've just made minor changes to the program.
For one, I was thinking about a fresh install of 2010 express (but remember some real problems when I upgraded from 2005, so ??) be afraid ? very afraid?
ALSO --
What are the mandatory files I need to save in a project folder?
If I delete the bin and obj folders (plus?) and let it write new ones will that sometimes cure some problems?
What is a good way to SAFELY keep all your hard work but get rid of possible clutter and ?
Configuration system failed to initialize --
View 6 Replies
Sep 13, 2010
I have the following code, I was wondering if anyone could show me a way to clean it up abit, it's a bit bulky and repetitive and I am just looking to slim it down.
Public Sub RefreshList()
Dim Button As New ListViewGroup("Button")
CodeKeeper.lvCodeList.Groups.Add(Button)
[code].....
View 3 Replies
Dec 20, 2011
I have a project that is used as management for a YouthFootball Team. Part of this is adding training fees and keeping track of who has, and has not paid.This part of the project is adding the fees to the relevant textfile.Textfile - Trainingfees.txt
Each line looks like - player name|number of sessions attended|amount paid I have a form with a DataGridView. Each row is populated with: Checkbox Column, Player name in textbox column, blank textbox coloumn The user then ticks who attended the training and how much money they paid in that session.
I then have this code to loop through the DataGridview and add call a separate function that adds the relevant information to textfiles.
[Code]...
View 6 Replies
Apr 27, 2008
I have created a web application that is used within our company to track our inventory.What I would like to do is create a windows forms application that I can distribute to certain managerial staff with some additional functions.I have tried googling this, but am unable to come up with any relevant documents. What I need is some direction on how to implement login through my windows forms application that will validate login against the ASPNET_DB so that the same roles and logins can be used.
View 1 Replies
Dec 14, 2011
The help in visual basic express 2010 directs me to the web,My searches often pick up info on C pgms and VB 6 etc.I have been adding VB 2010 to each of my searches.e.g. Format vb 2010.How do others search for relevant info in these web searches.
View 4 Replies
Jun 5, 2011
I have a program that must copy a file to 3 locations, the local hard disk, a USB drive, and a network location. I have the file (about 70mb) loaded into a byte array. My quesion is, since I'm not actively modifying the byte array, can I impliment a form of multithreading where all 3 threads read the same byte array at the same time?
View 1 Replies