I have recently moved from XP Pro VS2008 to Win7 Ultimate VS2010 and all the sudden I am unable to debug code and I can't write log files (ex: c:mylog.txt) anymore. What am I missing here? I am using the same code that used to work.My biggest issue is my inablility to debug. I was writting a quick app to check a service on a remote machine and I wanted to debug this app to trap all the possible errors. So I pointed my code to check my service local. [code]
I am trying to create a program which will read the files that exist in a directory, and then write in a text file the specific information (full file name, date created)i have found several code in the site but i cant make it work, the machine i am running the code is XP and i am using VB2008.The code i have found is the following:
I want to develop an application which can Write, Save, Read text files(or html files) What I want the application to do is. When I open my application I can write stuffs and then it will save it to my hosting/server. Then, the application will read the text which I already save.. So far, I can only make the application read it by using WebBrowser control and navigating it to a specified URL. Example: [URL](or message.txt) Which I modified from the website not from the application. I want to modify the text or html files from my application.
reading and writing files. Let's say I have a text file with multiple lines that I want to be read into my visual basic program. The first line is displayed in textboxA while the rest of the lines are displayed in textboxB. How do I accomplish this? Am I able to use the peek method for textboxB but somehow tell it to skip the first line? Now textboxB is obviously a multiline textbox and I want the user to be able to type something into another textbox (textboxC), press a button, and it will be displayed in textboxA. How do I make the text in textboxC get displayed on the first line of textboxA and move all the other lines down the list?
in the following thread, [URL]..my first reply, writes and reads two files..
my question is, is that code used properly for writing/reading those 2 files?
for some odd reason, i feel like i am over using the writers/readers.is there a way to only use one writer/reader, not 2, as my code in that thread does, to write/read 2 or more files?
I have an application that works in both 32 and 64 bit, except that on the 64 bit system it can not open/ read/write any files.I know the 64bit file system is different, from what I heard. How can I make up for the changes? I have no access to a 64bit system, but I want to make my program able to find and open the files.
Error File: [2 14.20 34.8] X8.435 Y-1.070 211.030 Short +215.534
[Code]....
From error file also i dont know how to get P value. If i used Index of ("P"). There are some other word also which contain P. Then code is not only taking the value i want from NodeList file but whole line.
I need to wqrite an app that can read through an Outlook PST file, and write messages to another PST file based on the content. I have never done any Office Automation, and was looking for pointers in getting started.
Public Function LoadBinaryFile(strFilename As String) As Byte() Using fsSource As FileStream = New FileStream(strFilename, FileMode.Open, FileAccess.Read) ' Read the source file into a byte array.
Private Sub frmMain_FormClosing(ByVal sender As System.Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles MyBase.FormClosing Dim log As String = String.Empty If File.Exists("watcher.log") Then Dim sr As New StreamReader("watcher.log") [Code] ..... No watcher.log file is being created/modified in the Release folder in my project, but it works when debugging and puts one in the Debug folder.
So I'm working on an app that needs to create files on the end user's computer to store info in (mainly text files and HTML files), and I'm trying to figure out the best location to write these files to. I've been reading various articles @ this online all afternoon, and the advice I've read so far seems to be "all over the place".From what I understand, if the end user is not logged into Windows as "admin", then there are a limited number of locations where files can be written to their computer, without them having to deal with UAC popups, etc.I would like my end-user's to have to jump through as few hoops as possible (none, preferably ), so should I only write my files to these specific locations? when I write the files to the end-user's computer, I have 2 different types of info that needs to be stored...
Info "A" is temporary data that only needs to be stored/accessed while the end user has my program open (and this data can be safely deleted each time they close my program).Info "B" needs to be stored somewhere where it never gets deleted, so that it can be accessed by my program for as long as the end-user has my program installed on their computer.So would it be best to store info "A" in the Temp folder, and info "B" in the App Data folder?And for any files that I store in the "temp" folder, do these files get automatically deleted when the end-user turns off their computer, or do I have to programatically delete these files every time my program exits?
I have a Windows Forms application that is filtering out Visual Studio solution files.
I have the code thus far to search and find the correct files and to differentiate between VS2005 & VS2010 solution files.
Now I need to write/save these files so that I can retreive them all from the same location. I need to use Streamwriter but am not too sure how to code it.
I have included my source code so far and code for the Streamwriter write and save?
I am looking for some API or OCX or any other method to copy the existing file from Hard disk to the USB storage device.for that i would have to perform the following checks :
1> Check for the plugged in USB devices.
2> Find out for the available space(2GB) on each.
3> Prompting a message to user on which drive he would like to write that movie file.(As At a time i want to give only 1 disk write only.
4> after selecting the Drive, and pressing OK, i just want to copy the selected file from HDD to that Device.
Now For achieving this , i just need a reference of any Available API or OCX or any other method available in VB.net?
I have a user of one of my programs reporting that they get an "access to the path...is denied" error during this section of [code]He's using Windows 7 x64 with UAC turned on. The location of "FilePath" is a subdirectory inside Program Files (x86) in this case.I tried to reproduce the error on my Windows 7 x64 system by enabling UAC (I usually have it off) but the program worked fine. However, in my case, "FilePath" is not in a protected system folder like Program Files (where write permissions are not given to normal users without admin elevation).So I tried to recreate this situation on one of my Vista x86 Virtual PCs where the "FilePath" would be inside Program Files. However, my program again worked fine. It had no problems writing to the Program Files folder with a normal user account, UAC turned on and no elevated permissions required.
Thus, I am confused. Why does it work for me and not for him? I want to try an x64 virtual machine but I can't with the software I have (Virtual PC doesn't support x64 guest OSs, VirtualBox won't run the software that my program interacts with). So maybe you guys can help me instead. Are the write permissions for the Program Files (x86) folder different between x86 and x64, or maybe even Vista and 7?
I use a code like this which perfectly works and creates MS Excel files so I can create Excel files and save my data into it.I also use a similar code to read the data, however, it only read and writes Excel 97-2003 files, and does not support Excel 2007 file format![code]...
I use a code like this which perfectly works and creates MS Excel files so I can create Excel files and save my data into it.I also use a similar code to read the data, however, it only read and writes Excel 97-2003 files, and does not support Excel 2007 file format!Do you have any suggestion on this?
Code: Dim ExcelString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + FileTextBox.Text + ";Extended Properties=Excel 8.0;"
I normally install my application in a directory in the c: drive as the software is only used within the company.There is some simple security; the program writes a 'bat' file that gets the volume serial number this then this is used to generate a licence file. Both of these files are written in the application directory.I'm giving the program to an external client and am going to install the program in the program files directory - but I find I cannot write a file to the Windows 7 program files directory.
I am a new to visual basic 2010 and I am creating a small game program that will have players names and keep their scores in a text file. I placed the text file in debug folder for debugging purposes. The code below has been simplified for demonstrating purposes only.
I have one project that I need help writing that I have spent months trying to write with no luck. Anyway so here is my question. I want to write a program that can display a phones filesystems that is connected to my computer by a serial port. I would like to be able to Read/Write files and stuff if possible. I have tried many ways of doing this so this is my last resort.
I am creating a program that uses text files to recall data and store them in a variable. My intention is to make this text file hidden so it will be harder to find and for other people to edit the data inside. I'm looking for a code that enables me to write to the file without unhiding it.
I want to be able to take some user inputs and then using the 'filesave' write a vb code file which I could load and get the program to execute. At the minute changing 4 text boxes on the main form to 4 values entered on the values form (where the save button is). I've tried this code;