C Board  

Go Back   C Board > General Programming Boards > C# Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 09-13-2009, 08:17 AM   #1
Registered User
 
Join Date: Sep 2009
Posts: 19
Arrow code for creating a folder in your C:\ dive

i need a code for a button so when i click it. it makes a folder in the C:\ DRIVE







i need the code to be where i can choose the name of the folder ONLY IN THE CODE, I DONT NEED IT TO WHEN YOU CLICK A BUTTON THE PROGRAM CREATES A FOLDER AUTO MATICLY WITH THE NAME AND THE PATH THAT I CHOSE IN THE CODE.
jamietrent is offline   Reply With Quote
Old 09-13-2009, 08:21 AM   #2
Registered User
 
Join Date: Mar 2009
Location: england
Posts: 76
Code:
System.IO.Directory.CreateDirectory("c:\\whatever");
theoobe is offline   Reply With Quote
Old 09-13-2009, 08:22 AM   #3
Registered User
 
Join Date: Sep 2009
Posts: 19
DO I put this into button
jamietrent is offline   Reply With Quote
Old 09-13-2009, 08:23 AM   #4
Registered User
 
Join Date: Sep 2009
Posts: 19
i need it to where i can choose the path and the name
jamietrent is offline   Reply With Quote
Old 09-13-2009, 08:43 AM   #5
...and never returned.
 
StainedBlue's Avatar
 
Join Date: Aug 2009
Posts: 41
So you create a textbox allowing the user to enter a name, tie the textbox.text to what was already given to you by theoobe in the event handler for the button click.

or better yet, bring up a file browser dialog...

Also,

1)Don't shout. People will be less willing to help you.

2)Give us some example code, because what you're saying is kinda vague.

Last edited by StainedBlue; 09-13-2009 at 08:46 AM.
StainedBlue is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Values changing without reason? subtled C Programming 2 04-19-2007 10:20 AM
Obfuscated Code Contest Stack Overflow Contests Board 51 01-21-2005 04:17 PM
Updated sound engine code Bubba Game Programming 8 11-18-2004 12:38 PM
Interface Question smog890 C Programming 11 06-03-2002 05:06 PM
Can you have nested code block? What does the compiler do? For example ... albertr C Programming 4 01-16-2002 12:04 AM


All times are GMT -6. The time now is 01:52 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22