|
Hi all,
I'm trying to delete a folder and all files and folders within that folder, I'm using the code below and I get the eror "Folder is not empty", any suggestions on what I can do?
Thanks
try { var dir = new DirectoryInfo(@FolderPath); dir.Attributes...
Started by Jamie on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
See MSDN DirectoryInfo.Delete.
For recursively deleting the contents of that folder too.
|
|
Where to Add a folder in .net solution so that while building the project folder should be created?
Started by Panda on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
If you want the actual folders to match the ones appearing....
Not sure what you mean there, but generally speaking, creating a folder inside the solution only creates a virtual folder - no actual folder is created on your file system.
|
|
I am trying to use an autorun.inf to run my executable file under a sub-folder with space in their folder name. Like this:
H:\ autorun.inf FOLDER NAME 1 file.exe FOLDER NAME 2 some other stuffs
If there's no space in the folder name, it works well. But...
Started by redjackwong on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Expanding on from Sanjay's answer of using two sets of quotes, like
open=""FOLDER....
[autorun] open="FOLDER NAME 1\Setup.exe" icon="FOLDER NAME 1 "FOLDER NAME 1" would usually become "FOLDER~1".
My uninformed guess: use quotes.
|
Ask your Facebook Friends
|
How to get list of folders in this folder?
Started by SomeUser on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
WIN32_FIND_DATA ....
Http://www.gamedev.net/community/forums/topic.asp?topic_id=523375
FindFirstFileEx + FindExSearchLimitToDirectories.
You can use Boost
Or, if you don't want Boost you can check out this thread where alternative options are discussed .
|
|
For me, both things are exactly the same. What's the point of these? Where's the difference between Project Folder and Source Folder?
Started by openfrog on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
The Project Folder....
They can be different but you need to check be changed .
The Source Folder is where your have all your stuff.
The Project Folder is where the nbproject folder (Netbeans configuration for the project) is stored.
|
|
I am trying to write a simple bash script that will copy the entire contents of a folder including hidden files and folders into another folder, but I want to exclude certain specific folders. How could I achieve this?
Started by trobrock on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
Alternatively, if you have lots.
Without the trailing slash, it means copy the folder source into destination .
A trailing slash means to copy the contents of the folder source into destination .
|
|
Hi all,
I've been using Visual Studio's Setup & Deployment Project to create an installer for a windows service and what i need is to create a folder within the application folder when the installer is run. How would i go about doing this? I tried adding...
Started by AlteredConcept on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
The installer project on "Application Folder....
If the sub-folder is empty it will not be created.
Did you put anything in the sub-folder you created in the Application Folder? Try adding a target text file to the sub-folder.
|
|
When you are browsing a network share and there are over 1000 folders in the root (like at work), is there a way to prevent Explorer from expanding all the Folders when you have the "Folders" view enabled?
Explorer will open the folder your double clicked...
Started by Chris on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at superuser):
If you are only looking for one folder, note that you can map drive letters to subfolders of a share..
|
|
I have a Visual Studio Solution. Currently, it is an empty solution (=no projects) and I have added a few solution folders.
Solution Folders only seem to be "virtual folders", because they are not really created in the Filesystem and files inside solution...
Started by Michael Stum on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Maybe this might be called a workaround but you can physically create the folder on disk either before or when you add new item/project.
The folder created underneath the solution will be virtual as said.
|
|
Hello,
I use Visual Studio to do a lot of my coding. I find the open containing folder feature quite helpful. But I don't want the folder to be "opened" by the windows explorer, instead I want to "explore" the folder -- you know, get the nice little frame...
Started by Rohit on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
There really isn't much difference anymore....
Explorer, go to Tools -> Folder Options, select the File Types tab, locate the Folder entry in the list (not File Folder!), click Advanced, and set "explore" as default instead of "open".
|