folder

Vista and ProgramData

What is the right place to store program data files which are the same for every user but have to be writeable for the program? What would be the equivalent location on MS Windows XP? I have read that C:\ProgramData is not writeable after installation by normal users. Is that true? How can I retrieve that directory programmatically using...

Creating a file inside a folder that doesn't exist yet in php

I want my php script to create an output file in a folder based on the date. The way I'm doing this is that its supposed to get the foldername/filename from a text file outputted by another program which I am unable to edit. So the file its grabbing the data from looks like this: data/newfolder/10302008/log_for_Today.txt | 24234234...

How to document folder permissions in Windows Server 2003?

I manage a small group of Windows Server 2003 computers. ONE of the the servers is NOT performing the same as the others. I expect that I have not set the folder and share permissions the same as the others. I want to be able to create a text document containing the share and folder permissions from each server so I can them use a...

RAMDrive for compiling - is there such a thing?

An answer (see below) to one of the question right here on SO gave me an idea for a great little piece of software that could be invaluable to coders everywhere. I'm imagining a RAMDrive software, but with one cruicial difference - it would mirror a real folder on my hard drive. More specifically - the folder which contains the project ...

What is a solution folder in visual studio

I have a vs 2008 solution and I would like to include a real folder in the solution, but not at the project level, instead at the solution level. I noticed you can right click the solution and add a solution folder, but it comes up as some white folder, and I have my doubts as to exactly what it is supposed to be... basically on the f...

Max files per directory in S3

Hi, If I had a million images, would it be better to store them in some folder/sub-folder hierarchy or just dump them all straight into a bucket (without any folders)? Would dumping all the images into a hierarchy-less bucket slow down LIST operations? Is there a significant overhead in creating folders and sub folders on the fly and ...

Sharing a folder and setting permissions in PowerShell

I need a script to run on Vista Ultimate to share an external drive and assign full control to Everyone. I've got a batch file to create the share using net share, but there doesn't seem to be a way to change the permissions. I reckon this must be possible in PowerShell, but I have no idea where to start. ...

How to move a single folder from one Subversion repository to another repository?

I have a "docs" folder in a Subversion repository named "project". I've come to the conclusion that it should really be kept under a separate Subversion repository named "project_docs". I'd like to move the "docs" folder (and all of it's revisions) to the "project_docs" repository. Is there any way to do this? ...

Adding folders to a zip file using python

I want to create a zip file. Add a folder to the zip file and then add a bunch of files to that folder. So I want to end up with a zip file with a single folder with files in. I dont know if its bad practice to have folders in zip files or something but google gives me nothing on the subject. I started out with this: def addFolderTo...

Best location for exception log files (Windows)

The question where exception logs should go has been discussed here once or twice (or more), and one of the recommendation was that the application should never write to the installation folder. However, if I put the logs somewhere in %appdata%, this means that each user has its own set of logs. I'd prefer having all logs at a single loc...

In ASP.NET 2.0, Can I have a button to browse client folder and pick a path (not file)?

I already used a hidden file upload control to browse file and grab the file path, without really uploading it. My question is, is there a way in ASP.NET, create a folder browse button, when it is clicked, just to browse client file system, and user can click the path and choose that path not file? ...

Detect executable folder from SDL

I am creating a C++ SDL game engine, and it is relevant to know the executable path since images and other resources are not stored within the executable - they are in a separated folder("res/"). Under Linux, I am using a shell script "rungame.sh" that cd's to the executable path and then runs the executable(using then "./" to reference...

File / Folder monitoring

Hi; What is the best way to monitor disks against file activities. I mean that getting the full file name (c:\temp\abc.txt), action(created/deleted/modified/renamed), and also the user (user1) and process name (notepad.exe) causing the file (multiple delete) activities. I heard about Some APIs and ShellNotifications but could not use t...

Is there a way I can create Exchange folders and set permissions through .NET calls?

I'm looking to build a snippet of .NET code that will go into an Exchange server and create a Public folder. Along with this I'd like to be able to set the permissions on the folder. If it's easier to copy one folder to a new one and copy over the permissions that way, that's okay too. Has anyone done this before? ...

What is the MS Win32 API to know a folder is shortcuts?

In Vista and Windows 7, there are many folders are shortcuts, like "C:\Users\Administrator\Application Data", use FindFileFirst serial API can enumerate all files under the folder, however we can NOT open it in Windows Explorer, I will also get error while call CreateFile to open the folder or the file enumerated by FindFileFirst serial ...

Is it possible to limit folder size in a Windows environment?

Is it possible to limit a folder size in Windows so that when a user tries to write to the folder when it is full he receives an error message? ...

Preorder tree traversal copy folder. [CLOSED]

Hi, We have a database that contains several Trees. These trees are build using the "Preorder tree traversal" principle. This is a very powerful way of creating trees but it has one big disadvantage, adding multiple nodes at once. We have to create a copy function in our tree, copying a single (lowest level) node is very easy, you can...

Disable Thunderbird Folder Expansion

I have recently setup Thunderbird in my machine. I have setup two accounts, one for me and the other for my brother. Is it possible to disable the expansion of the node for my Folder when I am not logged in to the gmail account? I am asking this to provide privacy in between our folders. Or would it be possible to set up Thunderbird ...

Folder "drop box" with custom behavior

I'm thinking of trying to create a "drop box" application that can automatically organize files as you drop them into a folder. I always end up with a bunch of random files on my desktop, and I think it would be useful to be able to drag them onto an icon/folder on the desktop and have them automatically sorted into other locations base...

Encryption for Folders

Is there a directory-encryption variant similar to VIM's "vim -x file"? I am looking for something like "mkdir -encrypt folder". ...