Click here to Skip to main content
15,895,667 members
Home / Discussions / C#
   

C#

 
AnswerRe: How i Lock my Harddisk drive in c#.net Pin
EliottA9-Jan-09 2:36
EliottA9-Jan-09 2:36 
AnswerHere is the answer Pin
sourabhsorate9-Jan-09 23:05
sourabhsorate9-Jan-09 23:05 
GeneralRe: Here is the answer Pin
Аslam Iqbal26-May-11 2:00
professionalАslam Iqbal26-May-11 2:00 
QuestionHow to make a cab file? Pin
sumit70348-Jan-09 18:30
sumit70348-Jan-09 18:30 
AnswerRe: How to make a cab file? Pin
Dragonfly_Lee8-Jan-09 19:09
Dragonfly_Lee8-Jan-09 19:09 
GeneralRe: How to make a cab file? Pin
sumit70348-Jan-09 19:21
sumit70348-Jan-09 19:21 
GeneralRe: How to make a cab file? Pin
Dragonfly_Lee8-Jan-09 19:45
Dragonfly_Lee8-Jan-09 19:45 
Questionhow do I read a file name located in a specific folder into a C# app Pin
Tina P8-Jan-09 17:26
Tina P8-Jan-09 17:26 
Hey guys,

As the title says, how do I read a file name located in a specific folder into a C# application.

Basically someone will be downloading a file from a website, once the file is downloaded to a particular folder (lets say /VisualStudio2008/Projects/MyProject/bin/Debug/TheDownloadedFile.csv)
then I need to have the name of the file read into my app?

To get to that particular folder, I'm doing system.AppDomain.CurrentDomain.BaseDirectory to get to the actual directory where the file is downloaded to, how to I grab the name of the file and extension from there. I guess the extension could be hard coded once the name of the file is detected and read into the program becaseue it will always be a csv file.

Can someone please help.

Thanks
Tina
GeneralRe: how do I read a file name located in a specific folder into a C# app Pin
Luc Pattyn8-Jan-09 17:44
sitebuilderLuc Pattyn8-Jan-09 17:44 
GeneralRe: how do I read a file name located in a specific folder into a C# app Pin
Tina P8-Jan-09 18:11
Tina P8-Jan-09 18:11 
GeneralRe: how do I read a file name located in a specific folder into a C# app Pin
Dragonfly_Lee8-Jan-09 19:27
Dragonfly_Lee8-Jan-09 19:27 
GeneralRe: how do I read a file name located in a specific folder into a C# app Pin
Luc Pattyn9-Jan-09 0:58
sitebuilderLuc Pattyn9-Jan-09 0:58 
QuestionRemoting Vs Socket for high throughput scenario? Pin
devvvy8-Jan-09 15:38
devvvy8-Jan-09 15:38 
AnswerRe: Remoting Vs Socket for high throughput scenario? Pin
sourabhsorate9-Jan-09 23:09
sourabhsorate9-Jan-09 23:09 
GeneralRe: Remoting Vs Socket for high throughput scenario? Pin
devvvy10-Jan-09 7:29
devvvy10-Jan-09 7:29 
Questionsession expired Pin
Rajeshwar Code- Developer8-Jan-09 15:02
Rajeshwar Code- Developer8-Jan-09 15:02 
AnswerRe: session expired Pin
harleydk8-Jan-09 20:23
harleydk8-Jan-09 20:23 
QuestionC#.Net in Symbian OS Pin
Mohammad Dayyan8-Jan-09 10:36
Mohammad Dayyan8-Jan-09 10:36 
AnswerRe: C#.Net in Symbian OS Pin
Jason C Bourne8-Jan-09 10:41
Jason C Bourne8-Jan-09 10:41 
GeneralRe: C#.Net in Symbian OS Pin
Dave Kreskowiak8-Jan-09 15:59
mveDave Kreskowiak8-Jan-09 15:59 
AnswerRe: C#.Net in Symbian OS Pin
User 66588-Jan-09 10:43
User 66588-Jan-09 10:43 
GeneralRe: C#.Net in Symbian OS Pin
Mohammad Dayyan8-Jan-09 10:47
Mohammad Dayyan8-Jan-09 10:47 
AnswerRe: C#.Net in Symbian OS Pin
Giorgi Dalakishvili8-Jan-09 18:40
mentorGiorgi Dalakishvili8-Jan-09 18:40 
QuestionBitmap display problem Pin
Member 19809998-Jan-09 9:40
Member 19809998-Jan-09 9:40 
GeneralRe: Bitmap display problem Pin
Luc Pattyn8-Jan-09 9:55
sitebuilderLuc Pattyn8-Jan-09 9:55 

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.