system.io

  1. S

    Question Problems with application locking up

    Hi, I have created an application with 3 terminal windows for capturing data from 3 serial ports and outputting the data to a file. It seems to work well with one serial port, but when I fire all 3 serial ports at once, the application hangs. Here is the portion of the code that I believe is the...
  2. S

    The process cannot access the file

    HI all. I am a little stuck on a peocedure. I'm trying to move files once they have been imported into SQL Server. The first file moves correctly, then I get the above error. I know it's something to do with dispose or close but can't get my head around it. Here is the code so far, the main part...
  3. C

    Answered How to make file readonly programatically?

    Hi, I am making a program to save it to (.txt). I am making it using System.IO. So far, my program can save the file already. But, I don't know how to make it readonly programatically. Please help me. Thanks in Advance. Regards,
  4. M

    Question file name too long

    Hello everyone I am reading filenames and some details recursively, starting from a user selected folder. Dim Path As New DirectoryInfo(NewPath) Dim File As FileInfo ' Get details for each file For Each File In Path.GetFiles ... Next I tried scanning an entire drive to test the code and...
  5. J Trahair

    Answered 'System.IO.Ports.Parity

    Hi everyone. My project in CFNet 2.0 tells me to add an assembly: Error 1 Reference required to assembly 'System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' containing the type 'System.IO.Ports.Parity'. Add one to your project. I am familiar with adding resources eg...
  6. J

    Question Counting Parent Directories in the DirectoryInfo Class

    Does anyone know if it's possible to iterate through every parent of a specified subdirectory until you reach the directory's root so that I can count the number of parents? I'm new to System.IO, but I have'nt seen any included counting functions.
Back
Top