Click here to Skip to main content
15,892,005 members
Home / Discussions / C#
   

C#

 
GeneralRe: Remove case sensitivity Pin
sumit703411-May-09 1:58
sumit703411-May-09 1:58 
AnswerRe: Remove case sensitivity Pin
Vikram A Punathambekar11-May-09 2:13
Vikram A Punathambekar11-May-09 2:13 
GeneralRe: Remove case sensitivity Pin
sumit703411-May-09 2:15
sumit703411-May-09 2:15 
GeneralRe: Remove case sensitivity Pin
Vikram A Punathambekar11-May-09 2:16
Vikram A Punathambekar11-May-09 2:16 
Questioncreating a directory in the solution during runtime Pin
MustafaHamed11-May-09 1:28
MustafaHamed11-May-09 1:28 
AnswerRe: creating a directory in the solution during runtime Pin
ramz_g11-May-09 1:38
ramz_g11-May-09 1:38 
AnswerRe: creating a directory in the solution during runtime Pin
Vikram A Punathambekar11-May-09 2:15
Vikram A Punathambekar11-May-09 2:15 
AnswerRe: creating a directory in the solution during runtime Pin
Dave Kreskowiak11-May-09 5:07
mveDave Kreskowiak11-May-09 5:07 
Your code is assuming that the Current Directory is your "solution" path. This is not that case and you should NOT be relying on it. ALWAYS build a fully qualified path to the target folder/file you want when doing file I/O operations.

In your case, I'm assuming you want the new folder to be created in the same folder as your .EXE file. To get the full path to that folder, you can use Application.StartupPath. Then you can use Path.Combine(...) with that path and your new folder name to create the fully qualified path to this new folder and pass that to CreateDirectory.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




GeneralRe: creating a directory in the solution during runtime Pin
MustafaHamed11-May-09 7:27
MustafaHamed11-May-09 7:27 
QuestionHighlighting Text in Powerpoint 2007 [modified] Pin
ramz_g11-May-09 1:04
ramz_g11-May-09 1:04 
Questionhow to set a picture with a specific alignment into excel cell Pin
tofa11111-May-09 1:01
tofa11111-May-09 1:01 
QuestionNHibernate data visible in profiler but not written to DB Pin
orinoco7711-May-09 0:20
orinoco7711-May-09 0:20 
AnswerRe: NHibernate data visible in profiler but not written to DB Pin
orinoco7711-May-09 2:03
orinoco7711-May-09 2:03 
GeneralRe: NHibernate data visible in profiler but not written to DB Pin
riced11-May-09 5:53
riced11-May-09 5:53 
GeneralRe: NHibernate data visible in profiler but not written to DB Pin
orinoco7712-May-09 0:03
orinoco7712-May-09 0:03 
QuestionCheck if drive exists Pin
Rajdeep.NET is BACK10-May-09 23:51
Rajdeep.NET is BACK10-May-09 23:51 
AnswerRe: Check if drive exists Pin
Alan N11-May-09 0:18
Alan N11-May-09 0:18 
AnswerRe: Check if drive exists Pin
stancrm11-May-09 1:21
stancrm11-May-09 1:21 
QuestionDraw Line Chart Pin
AlexDuta10-May-09 23:35
AlexDuta10-May-09 23:35 
AnswerRe: Draw Line Chart Pin
Simon P Stevens10-May-09 23:43
Simon P Stevens10-May-09 23:43 
GeneralRe: Draw Line Chart Pin
AlexDuta10-May-09 23:51
AlexDuta10-May-09 23:51 
GeneralRe: Draw Line Chart Pin
Simon P Stevens11-May-09 0:11
Simon P Stevens11-May-09 0:11 
Questionsetup project Pin
netDeveloper10-May-09 22:30
netDeveloper10-May-09 22:30 
AnswerRe: setup project Pin
Simon P Stevens10-May-09 23:50
Simon P Stevens10-May-09 23:50 
GeneralRe: setup project Pin
netDeveloper11-May-09 0:45
netDeveloper11-May-09 0:45 

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.