folder

Access virtual folder under My Computer

When I connect my digital camera, it creates a folder under My Computer named Canon PowerShot SD1100 IS. Using the File Explorer, I can browse this folder and its subfolders to access the pictures on the camera. Can anyone tell me how to access this folder and its subfolders programmatically? From within my software, I can drill down i...

php folder location.

what is the difference between ./folder-name/file.php and ../folder-name/file.php in php script? ...

Mimicking Smart folders

Hi, I am new to mac programming. I have a small task to do. I need to watch for file creation events in a folder, intercept them, and create symbolic links instead of a copy. ANy idea if there is any source code to do so or any api i should use? ...

Copying plist file to custom folder in ApplicationSupport (Objective-C)

I have this piece of code, which copies a plist file to the ApplicationSupport directory in the users folder. NSString *resourcePath = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:kAutonumberPlist]; NSArray *paths = NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, YES); ...

looping through an image folder in a wpf application

I currently am loading all images in a folder in my "MyPictures" folder on my machine which works fine... foreach (string filename in Directory.GetFiles(Environment.GetFolderPath(Environment.SpecialFolder.MyPictures))) What I really want to be able to do, though, is load all the images in my Images folder within my solution project. C...

.htaccess redirect to a directory

This is a very silly question but I am pretty weak in htaccess. I want all files (php, css, javascripts and images) located at http://localhost/template/* to point to http://localhost/* along with a 404 Error Handler that is located at http://localhost/tempalte/404.php I almost got it here but when I change RewriteRule ^(.*)\.(css|php...

Get names of all files from a folder with Ruby

I want to get all file names from a folder using Ruby. ...

iPhone create folder inside documents folder

Hello, i just want to create new folders in the documents folder of my iPhone app does anybody know how to do that ? appreciate your help! ...

crawling folder content in sharepoint

Hi everyone, I have a sharepoint site that gives me trouble with the search, it somehow crawls everything in the site but when I make a search for a document and I select one of those documents after the search is complete, instead of bringing up the documents it brings me back to the search page that I created. When I check the crawl lo...

Searching for specific file extensions in a folder/directory (PHP)

Hi Guys, I'm trying to design a program in PHP that would allow me to find files with specific file extensions (example .jpg, .shp etc) in a known directory which consists of multiple folders. Sample code, documentation or information about what methods I will be required to use will be much appreciated. ...

Remove empty subfolders with PHP

I am working on a PHP function that will recursively remove all sub-folders that contain no files starting from a given absolute path. Here is the code developed so far: function RemoveEmptySubFolders($starting_from_path) { // Returns true if the folder contains no files function IsEmptyFolder($folder) { return (count(...

is it right to save media file of project into svn repository?

I know that I can save all my projects files into repository so deployment of new version of software become only using svn export into properly directory. But I have a feeling that it is not right way and for media files I should use some other utilities for deployment like rsync. But it is also a problem with double-side sync = I like...

List the contents of a file on the form in C#?

Hey Guys, I was just wondering how do you display the conetnts of a chosen folder on a ListView or something for example so the files can be individually be selected (and multiple files) At the moment i have a folder dialog where the user chooses their desired path and yeah have stopped there :S Thanks, Ash ...

Folder and extension appearing after my domain name

Hello. A couple day ago i noticed that traffic had increased dramatically. Upon checking i noticed in my stats program that the extra traffic was from a direct source. ...

ASP Web.config folder path isn't resolving

I've just been asked to fix an ASP site and I know absolute no ASP. When I try to load the site, I get greeted with the following error: MENU CACHE EXCEPTION:No menu xml file found for menu id 1. Make sure the xml file \menuxml\menu_1.xml exist. I've tried editing Web.config to point to the correct folder using a variety of different p...

upload image from iphone to the server folder

hi expert, i found few snippet from online to upload image from iphone to the server folder, its showing to use server side scripting eg. use php at server side if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) { echo "Uploaded!"; }else{ echo "Not Uploaded!"; } /> is it any possibilites to upload image...

iis7 can not access site if site folder owner changes the password

Had to switch to "Application user" (pass-through authentication) to see the site again (site advanced settings). If I set "Specific user" (the one the site folder belongs to), iis7 shows the error. I've changed the user password as I've lost the old one. It seems that the OLD password is stored (encrypted) in some configuration file (...

C# accessing folder/files thru webservice

How can I have a webservice read/browse a folder content ? For instance this type of code: FolderBrowserDialog folderBrowser; folderBrowser = new System.Windows.Forms.FolderBrowserDialog(); folderBrowser.Description = "..."; folderBrowser.ShowNewFolderButton = false; folderBrowser.RootFolder = Environment.SpecialFo...

Issue with redirection of a folder with mod_alias

Another question following on from this thread. The only remaining item that I can't solve is that there is a listing for an now non-existent folder '/team/', but if I add this into my .htaccess file, it breaks all other .htaccess entries for files in that folder, i.e. redirect 301 /team/ /team.html redirect 301 /team/joe_bloggs.htm /t...

CMD: Delete files/subfolders in a specific directory

Hello, Can someone help me with something I want to achieve in CMD? Say, there is a variable called %pathtofolder%, and, as it makes clear; it is a full path to a folder. Now, what i want to do is, to delete every single file and subfolder in this directory. But not the directory itself. But, there might be an error like 'this file/f...