folder

How to make signature generator save in folder?

The upload script in this page is currently uploading the images to the same folder as the script. How do i make the script save all the images in another folder? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt; <html> <head> <meta http-equiv="Content-Type" content="text/html; cha...

How Do I copy the files and the Folder Tree to Remote Machine?

I have two machines Server A and Server B I want to copy all the files and folder tree from Server A to Server B and create the same file and folder tree using powershell scripting I have tried the command given below but it copies only the files in the folder but do not create the folder tree Copy-Item E:\TestSource\* //TestDestinati...

Checking if a Folder/File is Hidden/System in Windows C/C++

I am writing a Cross platform application using C++/STL/Boost and I realized they do not provide a way to check if a folder or file is hidden or is a system file in Windows. What's the simplest way to do this in C/C++ for Windows ? Ideally I have a std::string with the path (either to a file or folder), and would return if it's hidde...

C# SharpZipLib strips irrelevant directory names

I am using SharpZipLib to zip up a folder with subdirectories and this is working fine. What I would like to do is strip off the parents directories of the first child file so the whole structure that is irrelevant isn't carried forth... Example: c:\a\b\c\d\e\f\g\h\file1.txt c:\a\b\c\d\e\f\g\h\file2.txt c:\a\b\c\d\e\f\g\h\i\file1.txt...

Deleting __MACOSX folder with PHP?

Has anyone had any experience with deleting the __MACOSX folder with PHP? The folder was generated after I unzipped an archive, but I can't seem to do delete it. The is_dir function returns false on the file, making the recursive delete scripts fail (because inside the archive is the 'temp' files) so the directory isn't empty. Any ide...

C# Test if user has write access to a folder

I need to test if a user can write to a folder before actaully attempting to do so. I've implemented the following method (in C# 2.0) that attempts to retrieve the security permissions for the folder using Directory.GetAccessControl() method. private bool hasWriteAccessToFolder(string folderPath) { try { // Attempt to ...

How do I prevent Visual Studio from creating obj folders in my source directory?

I've set the OutputPath, IntermediateOutputPath, and BaseIntermediateOutputPath tags in all my csproj files. Despite that, Visual Studio creates extra "obj" folders in my source directories. As far as I can tell, it creates the directory obj\Debug\TempPE and then leaves it empty. I don't mind Visual Studio creating all sorts of crap, bu...

How to get NSImage of generic folder icon on OS X 10.5 and 10.6

I'm writing a Cocoa application that displays the contents of an archive file in an NSOutlineView. I provide a custom icon for an NSBrowserCell in the outline column, and it works great, but I ran into a little snag — using [NSImage imageNamed:@"NSFolder"] returns the correct image (a generic folder icon) on 10.6, but on 10.5 it returns ...

Getting type of folder in webdav .net

I need to look into all Contact type folders in an outlook mailbox (could be folders other than 'Contacts').I could not find an ItemProperty which would help me retrieve all Contact folders. So,to do this, I am retrieving all folders in a mailbox first and then want to compare the FolderType of each retrieved folder to FolderType.Contact...

Does Java Web Start give a default program folder?

For Java Web Start is there a default place to store and access data related to my program? Or do I need to create a folder? For Java Web Start (assuming I don't get a program folder) is it standard to just create on in Program Files for window, Applications for mac, etc? ...

Folder Explorer in C#

Hi, I'm trying to create an easy money folder explorer in c# and, because I'm a noob, I don't have many ideas except using webbrowser, which works (if anyone has a better idea please let me know it). THE QUESTION: how do I make it start in "view - medium icons" instead of "view - details" ? Thanks a lot, Ionut ...

Folder right click menu(Only Folder)

See this.What should i use instead of "Jpegfile" in the sample to represent folders? I don't want Drives,Recyclebin,Computer(My computer in XP),My Documents(in xp),etc. to be included too. I want my right click menu entry to be added to folders' right click menu only. Thanks and Regards. Please note: I can't use "Folder" since it include...

Upload a folder in ASP.NET of Flash or Silverlight

Dear all Is there any way to upload entire folder (a folder) in asp.net? Is there any way to upload in Flash or Silverlight? ...

How do I create a monitor for a specific directory?

Using Java over Windows Vista, I'm trying to create a kind of a monitor for a directory, so every time this directory is modified (new, renamed, updated or deleted files) a process is triggered. I tried to do this with a loop that will execute a dir in the directory and analyze all the files. But this is very time and memory consuming, s...

Sharepoint Alerts on List Folders.

Hi, I would like to programatically add alert to folders inside a sharepoint list. I have found how to set alerts to a list and this works perfect. Could someone please help me on how to set alerts to a specific folder which is inside a list. Below is the code i currently have which sets alerts only to the list. using (SPSite s...

How to delete empty subfolders with PowerShell

I have a share that is a "junk drawer" for end-users. They are able to create folders and subfolders as they see fit. I need to implement a script to delete files created more than 31 days old. I have that started with Powershell. I need to follow up the file deletion script by deleting subfolders that are now empty. Because of the ...

htaccess rewriteRule restrict access to one particular folder problem

Hello, I have problem with getting the folder inc restricted. It is only the inc folder in the root directory and not the inc folders higher up de hiarchie Problems are: IE will start a download/open dialog and FF displays an include file I don´t have this problem with the images folder wich is also in the root directory. What...

Git merge from a specific folder only.

OK, here's my problem, let me try to make it all make sense... I've created a rails website for client X. I now have a client, Y, who wants a website that does the exact same thing as client X, but with a different skin. Rails was perfect for this since all the skinning was in it's own folder and set apart from all the business logic. ...

Checking existence of a file given a directory format in perl

I am struggling with a method of walking a directory tree to check existence of a file in multiple directories. I am using Perl and I only have the ability to use File::Find as I am unable to install any other modules for this. Here's the layout of the file system I want to traverse: Cars/Honda/Civic/Setup/config.txt Cars/Honda/Pathfi...

C# Detect Desktop Folder Mouse-Up during a Drag operation ?

< I have reviewed the "related questions" shown by SO before posting this > Scenario : Drag and drop initiated from a control within a WinForm. note : all drag and drop code validated, carefully tested. I can use the code right now to create/write a file to the Desktop when the mouse is released. Drag goes outside the Form, mouse goe...