folder

Implementing Folder Explorer with webbrowser C# winform

Hi, I' trying to use webbrowser to create a folder explorer and I have few problems that I could not find any answer on the web... so I’ll appreciate your answers: Can someone please explain how can I create the Up button (going to parent folder)? How can I the explorer bar (on the left) to favorites or search as in windows explorer? ...

Folder security?

Hello, I have a folder named upload which is filled with folders of users uploaded files. Is there any way I can stop people from directly downloading my users files by simply typing the folder names and file name into the address bar? Example: user Jim's folder is stored at HOST/uploads/jim user Jim's important file "myimportantfile....

How do I create folders in ASP.NET in code behind?

I want to create dynamic folders at run time. Folder names with be input via a TextBox and output will be displayed in a TreeView. The form will submit if I enter the first folder name into textbox1 and click the "Add Folder" button. When I submit multiple folders with the same name the output should be an indexed increment of the na...

How can you move a folder to one folder-level lower?

I have a folder Math at /cs/.../topology/mathematics/Math. I tried the following unsuccessfully at the mathematics -folder. mv Math/ .. How can you move the folder Math to /cs/.../topology/ in terminal? ...

WebBrowser Control: Is there a good documentation on browsing local files and folders?

I am using the WebBrowser control to browse local files and folders, but the control seems to be designed primarily to browse the Web (as its name implies). I need to be able to do common tasks, like using the "Up one level" button, or put the control in "File Search" mode, get the active item, etc. Is there a way to do these things u...

When i save a folder in a location, its getting stored in a folder above

I import a file, process it and save it in some location. I am saving my file in a folder but it is getting saved in a folder above the folder selected. Here is the code, private void btnSave_Click(object sender, EventArgs e) { FolderBrowserDialog saveFile = new FolderBrowserDialog(); saveFile.ShowNewFolderButton...

How delete folder in C++

Hey all, How delete folder using C++? I am something find at internet, but do not help me :( Can somebody help me? Thank you ...

Script for Maintaining folders

I am trying to create a script that will keep 5 folders or 6 months worth of folders, whichever is greatest. I would have to use the created date for the 6month part of the script since the naming convention is by version rather than date. would anybody have any ideas about the best way to proceed? Thanks. ...

How to quickly check if folder is empty (.NET)?

Hello. I have to check, if directory on disk is empty. It means, that it does not contain any folders/files. I know, that there is a simple method. We get array of FileSystemInfo's and check if count of elements equals to zero. Something like that: public static bool CheckFolderEmpty(string path) { if (string.IsNullOrEmpty(path))...

Web.config for authorization of a private user folder

I have a private folder with thousand of users' folders which only be accessible by the correct user. No user can access other users' folders. I can only think of creating a web.config authorization rules for each of the users' subfolder. In this case, I don't have to add every rules for each user in one web.config files. I am wondering...

How does folder hiding software work?

Last few days i have been working on building an application to hide folders(thanks to the paid versions of such softwares). After a heavy googling I zeroed into some shell script that would first create a folder and then rename the folder to "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}". It would then hide this folder by using ...

SharePoint: Filtering a List that has Folders

I have a SharePoint document library that has a folder structure used for organizing the documents (but also for controlling access, via permissions on the folders). The documents in the library are updated every month, and we store every month's version of the document in the same folder; there's a "month" column used for filtering tha...

Moniter folder permission

Anyone know how can we moniter file /folder permission on windows. Suppose a user can change the folder permission, the application can log the user, timing and other details. If neone know third party tool/script for the same, plz suggest. -Thanks ...

Why files under bin folder cannot be found?

I inside my httpdocs(www), i created a folder called "bin", i put an "test.html" just to display "Hello Stackoverflow", but when I go access the page, i.e http://domain.com/bin/test.html, it says Page Cannot Be Found. But when I move the file to test folder, it display what it should be. Why? ...

C# ftp client program create folder issue

Hello everyone, I am writing a simple FTP client using C#. I did not find any samples which could create folder on FTP server, check whether a folder already exists on FTP server. Any referred simple samples? thanks in advance, George ...

Find $HOME or Windows equivalent with FreePascal

My purpose is to deploy user configuration files under: $HOME/.appname for Unix/Linux. \Documents and Settings\(user)\Application Data\AppName for Windows. What are the API's or group of functions that I can use, with the appropriate {$IFDEF}'s, so I can deploy my config files on the appropriate places? ...

Zip folder in C#

What is an example (simple code) of how to zip a folder in C#? Update: I do not see namespace ICSharpCode. I downloaded ICSharpCode.SharpZipLib.dll but I do not know where to copy that DLL file. What do I need to do to see this namespace? And do you have link for that MSDN example for compress folder, because I read all MSDN but I c...

grabbing image from folder based on size

ok so i have a folder that was created after this answer was used so now i have a folder with with many folders in it each one having images and a .txt file the images are almost all .jpg so now i want to display a image from each folder, using php i want to display the first image from each folder, and if there is no images i want t...

How to get the owner and group of a folder with Python on a Linux machine?

Title says it all pretty much. Is there any way how I can find out about the owner and group of a folder with Python? Thank you so much, you guys are amazing! ...

sorting and displaying image based on size

<?php foreach (glob("*.jpg") as $filename) { echo "$filename size " . filesize($filename) . "<br>"; echo '<img src="'.$filename.'" height=150px><br>'; } ?> using that code, i am able to display all the images in the folder i want to display only one that meets a size parameter, and if there are more ignore them basically want ...