Click here to Skip to main content
15,905,877 members
Home / Discussions / C#
   

C#

 
GeneralRe: CSV File at tempory folder Pin
C#Coudou18-Sep-07 19:35
C#Coudou18-Sep-07 19:35 
QuestionHow to Control Devices with USB ? Pin
hdv21218-Sep-07 15:02
hdv21218-Sep-07 15:02 
AnswerRe: How to Control Devices with USB ? Pin
Dave Kreskowiak18-Sep-07 16:21
mveDave Kreskowiak18-Sep-07 16:21 
QuestionHelp Timer Not Accurate Pin
laura131618-Sep-07 11:22
laura131618-Sep-07 11:22 
AnswerRe: Help Timer Not Accurate Pin
Pete O'Hanlon18-Sep-07 11:26
mvePete O'Hanlon18-Sep-07 11:26 
AnswerRe: Help Timer Not Accurate Pin
Giorgi Dalakishvili18-Sep-07 20:30
mentorGiorgi Dalakishvili18-Sep-07 20:30 
QuestionReading an MDB with that read a directory and move files. Pin
gmelkhunter18-Sep-07 11:14
gmelkhunter18-Sep-07 11:14 
AnswerRe: Reading an MDB with that read a directory and move files. Pin
ChrisKo18-Sep-07 11:27
ChrisKo18-Sep-07 11:27 
The DirectoryInfo class and the FileInfo class should be all you need for the file side.

DirectoryInfo dir = new DirectoryInfo(@"c:\");
FileInfo[] fileList = dir.GetFiles("*.*");


Now fileList array has a snapshot of all the files found on c:\. You can change the file filter to be whatever type of file you want. The GetFiles() method has an overload that takes an additional parameter called SearchOption that can be used to include subdirectories if you want.

FileInfo[] fileList = dir.GetFiles("*.*", SearchOptions.AllDirectories);


Once you have that snapshot, you don't care about new files added to the directory, because you'll be iterating the fileList array and the Excel doc. Hope that helps you and shows you how to avoided moving files to a temp directory when it's not needed.
GeneralRe: Reading an MDB with that read a directory and move files. Pin
gmelkhunter18-Sep-07 13:12
gmelkhunter18-Sep-07 13:12 
QuestionExecute a remote .exe file with switches using Proccess class Pin
Don Dang18-Sep-07 10:43
Don Dang18-Sep-07 10:43 
AnswerRe: Execute a remote .exe file with switches using Proccess class [modified] Pin
PIEBALDconsult18-Sep-07 10:57
mvePIEBALDconsult18-Sep-07 10:57 
GeneralRe: Execute a remote .exe file with switches using Proccess class Pin
Don Dang18-Sep-07 11:50
Don Dang18-Sep-07 11:50 
GeneralRe: Execute a remote .exe file with switches using Proccess class Pin
PIEBALDconsult18-Sep-07 13:35
mvePIEBALDconsult18-Sep-07 13:35 
GeneralRe: Execute a remote .exe file with switches using Proccess class Pin
Dave Kreskowiak18-Sep-07 14:08
mveDave Kreskowiak18-Sep-07 14:08 
GeneralRe: Execute a remote .exe file with switches using Proccess class Pin
PIEBALDconsult18-Sep-07 15:01
mvePIEBALDconsult18-Sep-07 15:01 
GeneralRe: Execute a remote .exe file with switches using Proccess class Pin
Dave Kreskowiak18-Sep-07 16:16
mveDave Kreskowiak18-Sep-07 16:16 
GeneralRe: Execute a remote .exe file with switches using Proccess class Pin
PIEBALDconsult18-Sep-07 16:31
mvePIEBALDconsult18-Sep-07 16:31 
GeneralRe: Execute a remote .exe file with switches using Proccess class Pin
Dave Kreskowiak18-Sep-07 17:20
mveDave Kreskowiak18-Sep-07 17:20 
GeneralRe: Execute a remote .exe file with switches using Proccess class Pin
Don Dang19-Sep-07 9:39
Don Dang19-Sep-07 9:39 
GeneralRe: Execute a remote .exe file with switches using Proccess class Pin
Dave Kreskowiak19-Sep-07 11:58
mveDave Kreskowiak19-Sep-07 11:58 
GeneralRe: Execute a remote .exe file with switches using Proccess class Pin
Don Dang19-Sep-07 12:27
Don Dang19-Sep-07 12:27 
GeneralRe: Execute a remote .exe file with switches using Proccess class Pin
Dave Kreskowiak19-Sep-07 15:16
mveDave Kreskowiak19-Sep-07 15:16 
GeneralRe: Execute a remote .exe file with switches using Proccess class Pin
PIEBALDconsult19-Sep-07 17:52
mvePIEBALDconsult19-Sep-07 17:52 
GeneralRe: Execute a remote .exe file with switches using Proccess class Pin
Dave Kreskowiak20-Sep-07 1:56
mveDave Kreskowiak20-Sep-07 1:56 
GeneralRe: Execute a remote .exe file with switches using Proccess class Pin
Don Dang19-Sep-07 9:11
Don Dang19-Sep-07 9:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.