folders

Mac 10.4 Sync Files

I am using Google code svn and have a repository setup. Inside the repository I am including TinyMCE and now I want to upgrade all the files in this folder. The problem I am having is if I checkout locally and then download their new version and replace the folder it wipes out all my svn files. So in effect removes it from version cont...

How to create folder in code behind page.

This is in reference to yesterday's question "How do I create folders in ASP.NET in code behind". The problem is that I want to create dynamic folders at run time. Folder names will be entered 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...

Python: Importing modules from parent folder

I am running Python 2.5. This is my folder tree: ptdraft/ nib.py simulations/ life/ life.py (I also have __init__.py in each folder, omitted here for readability) How do I import the nib module from inside the life module? I am hoping it is possible to do without tinkering with sys.path. (Note: The main module being r...

Storing folder hierarchy in relational database

I have objects representing folders and I'm wondering if they should be represented in the database. On the one hand it seems like the easiest way would be to not represent folder objects and just store a path value for objects contained in a folder. Problems I see with this is that you can't persist an folder whose descendants do not ...

Windows Explorer like folder tree browser

I am trying to implement a platform independent file/directory tree browser. Basically, I am trying to replicate windows explorer's tree control to browse the computer. However, I can't figure out how to find the "Desktop" or "My Computer" folder string (It changes in every pc and os type, version and language). If I can find a way to ge...

Getting image from hyperlink and not from folder to populate my Repeater Control

Instead of populating my Repeater with pictures from a folder in my project i want to polulate it with a link to where the image is like so.............. http://www.erate.co.za/imgGrab.aspx?Id=99 What code changes must i make to let my code look at my hyperlink for the image and not the "pics" folder? My Page Load protected void ...

How can i diplay my Images inside my GridView from folders?

This is my Gridview <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" Height="191px" Width="333px"> <Columns> <asp:ImageField HeaderText="Image"> </asp:ImageField> <asp:BoundField DataField="ID" HeaderText="ID" SortExpression="ID" /> <asp:BoundField Da...

ant: list folders on command line

I'm new to ant. I'm looking to a way to do this I have a folder, with a variable number of subfolders. Suppose subfolders are s1,s2,s3...,sN (N is not known) I need to create and execute this command line java -jar myjar.jar s1\ s2\ s3\ ... sN\ I would like to use standard task, but I do not know how to list folders on the command l...

Moving Files and Folders Accidentally to Non-existent Places

I often do the command such as: mv folder $something_that_does_not_exist mv files* $something_that_does_not_exist Then, I realise that my files are gone. I cannot see them even in the folder "$something_that_does_not_exist". Where have my files and folders gone? How can I get them back? ...

Problem when replacing images with same names in folders!

A.) When i use code to delete lets say Image123.jpg in folder Pics and i upload another image and rename that image also Image123.jpg and place it into folder Pics for some reason the new image get's displayed but its using the dimensions of the Image i delete. Using a Repeater over here to display the image................. B.) When i ...

Regex question to find a trailing space in a whole folder

Hi, I have a folder pulled from a wordpress installation, >1000 files. Some php code is throwing an error due to trailing spaces on the very last line (I cleaned up an iframe injection on some final lines of pages, and did find/replace with a space, but didn't know that that would throw off all my code). What's the most efficient way t...

C# WebBrowser.Navigate Issue

Hello, I have an XML file stored in the DEBUG folder inside the BIN Folder of my Application (BIN\DEBUG\File.xml) When i call WebBrowser1.Navigate("File.xml"); It doesn't update the view with the display of the file. I know it's something to do with it not locating the file due to the folder location being incorrect. The file has to b...

Programatically batch files to copy at night

I need to create an Intranet website (page) which allows users to indicate a local network folder to copy to a production location. Currently this is done manually using xcopy in batch files. What I am looking for is approaches on triggering the copy so it's done in the middle of the night and an approach to copy the files. I suppose ...

Mac OS X: Sharing Folders via Terminal

Is there a command line utility for creating network shares, using the Apple Filing Protocol (afp://)? ...

Delete Files and Folders Issue

Hi there .... My project is a Web project built using three technologies : Icefaces for presentation layer. Spring for business layer. Hibernate for data access layer. My Project deployed on WebSphere 6.1 and the user can upload files, I use ice:inputFile component to handle the upload process... The first issue is: When the upload...

Folder permissions

How do I grant access to on an NTFS folder (Win2003) such that when files are added to this folder, they get the same access permissions? My problem is that I have granted read access to the 'network service' on a specific folder but when I add files to that folder (programatically generate the files to this folder), the network service...

Network Folder Security

Hi, I have a treeview control which is being used to browse various folder on the users system drive. It can also be set up to connect network folders using UNC paths e.g "\server\files". At the moment I'm getting a list of Directories by using My.Computer.FileSystem.GetDirectories however this obviously fails when the folder is passw...

What is the aspnet_client folder in my ASP.NET website?

I inherited a website and see that folder in the web root. I'm trying to clean out the old crap, and wondering if I can delete it. What is this folder used by? Is it auto generated? Is it a cache? What creates it? ...

Detect if the contents of a folder have changed?

Conditions: Windows 98 SE WMI not available I have code that looks like this, written using my steroidal wrapping of VBScript using MSScript. do a = files.collectfiles( "c:\userver", "" ) for i = 0 to ubound( a ) f = a(i) if strings.endswith( f, ".usv" ) then d = files.readfilee( f ) on error resume next executeglobal...

Rules for "Date Modified" of folders in Windows Explorer

How does Windows Explorer determine the "Date Modified" field for folders? [Aside: I know this is asking from an explorer-specific perspective, but the behaviour could be useful to coding search/sort type activities] Is there a definitive description of this anywhere - searches of Microsoft, MSDN, Google & Stack Overflow have been unsuc...