folder

How can one extract the names of files in a folder as text?

For example in windows explorer? ...

Anything wrong with this PHP

Can you see anything wrong with this code, or can it be optimised? Code from index.php, to include the file if(empty($_GET['t'])) { $folder = "apps/"; }else { $folder = str_replace("/", "", $_GET['t']) . "/"; } if(empty($_GET['app'])) { include('apps/home.php'); } else { if(file_exists($folder.$app.".php")) {...

How to add comments to folders

How to add the comments to the folders in Windows XP. When i arrange the folders in details view and right click below the address bar there are list of options in that one option is Comment i want to add the comments to folders and based on that i want to arrange it. How to achieve this? ...

What is the easiest way to track a change in a folder in Java ?

I have a set of source folders. I use a Java class to build the distribution file out of these folders. I'd like to write another little class in Java which runs every half a second, checks if any of the files in the folders have changed, and if yes, run the building class. So, how do I detect easily that a folder has been modified ? ...

Is it possible to make a read only directory in windows XP?

According to http://support.microsoft.com/kb/326549 the read only attribute is typically used for reasons other than marking a folder as actually read-only. Therefore it seems to me that it is not possible to make a directory read only in the same sense as linux using chmod a-w. ...

How does git handle folder permission ?

Hi there, I'm using git version 1.5.6.3, and it seems git doesn't notice a folder's mode changes #create a test repository with a folder with 777 mode :~$ mkdir -p test/folder :~$ touch test/folder/dummy.txt :~$ cd test :~/test$ chmod 777 folder/ #init git repository :~/test$ git init Initialized empty Git repository in ~/test/.git/ :...

How do I keep Windows Explorer from interfering with deleting a folder?

I've got a routine that deletes a folder and everything in it. After deleting all the files, the last thing it does is: if not Windows.RemoveDirectory(pname) then raise EInOutError.Create(SysErrorMessage(GetLastError)); Unfortunately, I tend to get an error from this if I have an open window in Windows Explorer displaying the folder...

Is there a Create New Folder in current project keyboard shortcut for Visual Studio 2008?

Im using Reshaper keyboard shortcuts all the time and it helps a lot in everyday development. But i constantly need to create new folders in my Visual Studio projects so this means -> move the mouse from keyboard, use the mouse, right-click the desired project, choose menu Add->New Folder, type folder name etc. Its tedious! Is there ...

Dynamically add files to visual studio deployment project.

I've been desperately looking for the answer to this and I feel I'm missing something obvious. I need to copy a folder full of data files into the TARGETDIR of my deployment project at compile time. I can see how I would add individual files (ie. right click in File System and go to Add->File) but I have a folder full of data files whi...

How can I delete LRU folders until 5GB free space is available

Given a folder \localhost\c$\work\ I'd like to run a powershell script every 15 minutes that ensures 5gb of free space is available. If < 5gb is available, remove the least recently used folder within work until >5gb is available. Gravy for nice output that can be redirected to a log file. Thoughts? ...

How to import python module in a shared folder?

I have some python modules in a shared folder on a Windows machine. The file is \mtl12366150\test\mymodule.py os.path.exists tells me this path is valid. I appended to sys.path the folder \mtl12366150\test (and os.path.exists tells me this path is valid). When I try to import mymodule I get an error saying the module doesn't exist. ...

How can I get apache to list a folders contents?

How can I get Apache to display the contents of my folder and provide links to them? Similar to http://www.kernel.org/pub/linux/? I don't have access to the Apache configuration, so I'm looking for something in the way of .htaccess or something I can do in just my home folder. ...

scp -r ... but leave out (exclude) a specified subdirectory

Here's the directory structure: /a/ /a/b/ /a/c/ I want to copy everything, EXCEPT for the /a/c/ subdirectory. scp -rp myserver:/a . # this will copy everything Q: How would I specify a directory to leave out in the scp command ? ...

How to delete folder into recycle bin in C++

I am programing under C++, MFC, windows. I want to delete a folder into recycle bin. How can I do this? CString filePath = directorytoBeDeletePath; TCHAR ToBuf[MAX_PATH + 10]; TCHAR FromBuf[MAX_PATH + 10]; ZeroMemory(ToBuf, sizeof(ToBuf)); ZeroMemory(FromBuf, sizeof(FromBuf)); lstrcpy(FromBuf, filePath); SHFILEOPSTRUCT FileOp;...

Easy way to get size of folder (ObjC/Cocoa) ?

Right now I'm using this code to get the size of a folder: NSArray *contents; NSEnumerator *enumerator; NSString *path; contents = [[NSFileManager defaultManager] subpathsAtPath:folderPath]; enumerator = [contents objectEnumerator]; while (path = [enumerator nextObject]) { NSDictionary *fattrib = [[NSFileM...

Size discrepancy between size of folder from Finder and from Carbon file manager

Hi, I'm using this method by Dave DeLong to calculate the size of a folder using the Carbon File Manager API: http://github.com/davedelong/BuildCleaner/blob/b2712242b4eea1fff0e78a08b393a417e3019c8a/NSFileManager+FileSize.m (Its the first method there) The issue I'm having is that some folders (.app bundles in my case) are not reporti...

Make a File/Folder Hidden on Windows with Java

Hi, I need to make a file and/or folder hidden on both Windows and Linux. I know that appending a '.' to the front of a file/folder will make it hidden on Linux, but how do I do this on Windows? Thanks ...

FreeBsd: let users of the same group have automatic read/write access to files and folders created by them

Hello! I'm in a FreeBSD-environment where we have one server that acts as a file-server. Now we have a problem that our SYS-admin says can not be fixed. All or files resides in a folder and we all have access to that folder and its subfolders and files. The problem is that once I,or another user in our group, creates a file or folder ...

Declaration of Scripting.Folder in VB6.0

To find delete folder, in my code in use a varaiable with the following declaration "Dim Folder as Folder". It was working fine for years. But suddenly when exceuting the line "Set folder = fso.GetFolder(strParamPath)" it gives "Type mismatch" I dont know why suddenly this error has come. So I changed the declaration to "Dim Folder as Sc...

Getting user temporary folder path

How I can get the user's temp folder path in C++? My program has to run on Windows Vista and XP and they have different temp paths. How I can get it without losing compatibility? ...