1ответов
531 просмотров

httphandler filetype mapping requires virtual directory (or does it?)

I am using an httpHandler to pass all requests for *.gif files to an ashx handler. i only want to do this for requests to a sub-folder within the website. The website root is called 'demo' and the subfolder is called et. So, I add a web.config file to the et folder with an entry as follows: ...

1ответов
53 просмотров

How do you consistently retrieve the path information from the query in php? (/index.php/foo/bar)

Basically if the user requests: index.php/foo/bar I need "/foo/bar" and for index.php I need "" or "/" I couldn't find any information on google because I don't know what this is called (path info got me the pathinfo() function) I found PHP_SELF returns differently if there is path info ...

5ответов
4688 просмотров

How do I write a cpp __DIR__ macro, similar to __FILE__

The __FILE__ and __LINE__ macros are built into the C Pre-Processor, and are often used for printing debug output with file names and line numbers. I need something similar, but with just the name of the directory at the end of the path. For instance if my code is in: /home/davidc/some/path/to/so...

3ответов
830 просмотров

How to make XCode put required resources in "build" folder?

I am trying out lua script with C++ in Mac OS X. I was finding a way to make the program returning the current working directory. That's no problem with getcwd, but then I came one thing: My foo.lua stays at its initial path only. When I compile program, it is not being copied over to the build/...

1ответов
163 просмотров

Folders (directories) not being detected properly

I am noticing an error with the 'bog standard' Objective-C folder detection code. I am scanning files and folders with a given path and keeping count of how many files exist and how many folders exist. Oddly enough, I am returning a count of one more folder than actually exists! Stepping throu...

2ответов
4629 просмотров

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 ...

1ответов
684 просмотров

ASP.Net page access directory on another server

I need to let an aspx.cs file run code to enumerate the contents of a directory on another server altogether. Basically, use a Directory object, etc. Here is what I can piece together (I'm really not a network rights guy at all, so this is all confusing to me.) When a user loads my aspx page, ...

3ответов
3098 просмотров

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 o...

5ответов
320 просмотров

3ответов
1060 просмотров

Creating folders using DirectoryEntry

I am writing an ASP.NET (C#) application to create users for my domain. It also has to create folders and shares on a separate file server. I have so far been able to accomplish my task using System.IO.Directory.CreateDirectory to create the folders, a ("WinNT://fileserver/lanmanserver") Dire...

2ответов
417 просмотров

C# - end/finished "event" of a recursive function?

Lets assume the following function: private void ParseFolder(string strFolder) { foreach (string currentFolder in Directory.GetDirectories(strFolder)) ParseFolder(strFolder); } Now we start our recursive loop with: ParseFolder("C:\"); Is there a way to be notified when this recusriv...