folders

mod_rewrite convert certain folders to parameters

Hi I have a site where I'd like to convert the first subfolder into a parameter (from a set list of subfolders), so http://localhost/mysite/folder1/dosomething.php is displayed as shown above, but to PHP it looks like: ... localhost/mysite/dosomething.php?organisation=folder1 I only need to do this on certain folders (i.e. not ... l...

Is there a faster way than this to find all the files in a directory and all sub directories?

I'm writing a program that needs to search a directory and all its sub directories for files that have a certain extension. This is going to be used both on a local, and a network drive, so performance is a bit of an issue. Here's the recursive method I'm using now: private void GetFileList(string fileSearchPattern, string rootFold...

Storing properties in JNDI? Environment specific locations.

I want access to a storage folder but its actual location can vary with environments. Could I store properties into JNDI or do something similar to a datasource in JBOSS? How would I go about it? Thanks. ...

VBScript to detect today's modified files in a folder (including subfolders inside it)

Hi All I need to get all the modified files inside a folder including the subfolders inside it, and copy them to another folder. How can it be done using VBScript or any other way to achieve this? Thanks in advance, Bibhu ...

How to tell if a Windows folder has content-indexing enabled?

I am looking for a Windows API that I can call from Delphi 2010 which will allow my application to determine if a specific folder has content-indexing enabled. In other words whether there is a tick in the checkbox named 'Allow files in this folder to have contents indexed in addition to file properties' which is in the Advanced Attribut...

Is there a way to create a subfolder in the resources folder in Xcode?

This might be an overly simple question, but I am a beginner at programming for the iPhone with Xcode. My project uses a lot of picture files for UIImageView animation arrays. I add all of the pictures into my resource file but the resources folder is getting a bit unwieldy. Is there a way to add subfolders in resources that do not ch...

Delete Folders and Containing Files - VB.NET

Hello everyone, I have a really quick question. My program actually downloads a zip file then extracts it onto their desktop. But I need an uninstall feature for it, which is basically deleting multiple folders and containing files. How can I do this in vb.net? Thanks ...

How to make my Python unit tests to import the tested modules if they are in sister folders?

I am still getting my head around the import statement. If I have 2 folders in the same level: src test How to make the py files in test import the modules in src? Is there a better solution (like put a folder inside another?) ...

iPhone SDK: subFolders inside the main bundle

Hi, in the current project I have a number of folders, with subfolders, and these contain images: 01.png, 02.png. Folder1/FolderA/f1.png Folder1/FolderB/F1.png When I compile the app, I looked inside the the .app and noticed that all the images are placed in the top level, with no sub-folders. So clearly when trying to load the imag...

How to remove svn folders over FTP on Windows hosting

Hi there, I've accidentally copied a large part of a folder tree from my SVN working copy to my shared Windows web host via FTP. The site is now littered with .svn directories and and I need some way of cleaning them. The only access I have to the server is via FTP, or by running a script on the server. Does any one have a script whic...

i want active my program when user click on folder in "explorer"

hi i`m C# programmer i want to active my program when user click on folder in "explorer". TNX ...

very quickly getting total size of folder

I want to quickly find the total size of any folder using python. import os from os.path import join, getsize, isfile, isdir, splitext def GetFolderSize(path): TotalSize = 0 for item in os.walk(path): for file in item[2]: try: TotalSize = TotalSize + getsize(join(item[0], file)) ex...

How do I delete folders in bash after successful copy (Mac OSX)?

Hello! I recently created my first bash script, and I am having problems perfecting it's operation. I am trying to copy certain folders from one local drive, to a network drive. I am having the problem of deleting folders once they are copied over, sometimes the folder would be empty of contents, but the folder itself would remain, other...

How to delete the GUID folders from the drive(Temp folders created for installation)

Hi all, After installing .NET versions, 3.0 and 3.5 on my system, dummy or temp folders are created. These folder names are with the GUID. I want those temp/guid folders to be deleted automatically after the .NET installation. I have tried using the following in cmd line cmd: C\XXX\XXXX\dotnetfx35.exe /q /nobackup /norestart. As far as ...

How to read an IIS 6 Website's Directory Structure using WMI?

I need to read a website's folders using WMI and C# in IIS 6.0. I am able to read the Virtual directories and applications using the "IISWebVirtualDirSetting" class. However the physical folders located inside a website cannot be read using this class. And for my case i need to read sub folders located within a website and later on set...

Recursion through a directory tree in PHP

I have a set of folders that has a depth of at least 4 or 5 levels. I'm looking to recurse through the directory tree as deep as it goes, and iterate over every file. I've gotten the code to go down into the first sets of subdirectories, but no deeper, and I'm not sure why. Any ideas? $count = 0; $dir = "/Applications/MAMP/htdocs/site.c...

How do I get the path of a random folder?

Like start at c:\ (or whatever the main drive is) and then randomly take routes? Not even sure how to do that. public sealed static class FolderHelper { public static string GetRandomFolder() { // do work } } ...

Folder View in C# Form

Hello, In an attempt to learn C#, I am trying to develop Picasa Like Application to display Photographs from my Library. Would it be possible to display folders as in Picasa Using C# ? Any help would be highly helpful. ...

Git ignore sub folders

I have a lot of projects in my .Net solution. I would like to exclude all "bin/Debug" and "bin/Release" folders (and their contents), but still include the "bin" folder itself and any dll's contained therein. .gitignore with "bin/" ignores "Debug" and "Release" folders, but also any dll's contained in the "bin" folder. "bin/Debug" or "...

Open Folder and Select multiple files

In C# I want to open explorer and in this explorer window must be selected some files. I do this like that: string fPath = newShabonFilePath; string arg = @"/select, "; int cnt = filePathes.Count; foreach (string s in filePathes) { if(cnt == 1) arg = arg + s; ...