filesystem

Writable file location / Communication AutoPlay Media Studio -> Flash AS3

I have an application built with AutoPlay Media Studio which needs to be able to communicate with an embedded .swf, built in Flash CS3 with AS3. The APMS application needs to send a filename to the embedded flash. I've tried using flashvars but these don't seem to work from the APMS app. I've previously written the info to a text file ...

How to determine when file copying is ended?

How to determine when file copying is ended i'm using c# edit: we copying files through network from one pc to another one. my task is to watch directory and do some actions after files are copied to it. ...

Windows 7 Missing Shortnames

I noticed that if you get a Scripting.File object from certain windows files (Example: any wav in C:\Windows\Media) the Scripting.File.ShortPath property shows the long path. Curious I dropped to the command prompt and tried Dir /A /X and sure enough the short paths were missing from all the files in that directory. Anyone know: A.) Wh...

Clickonce Online Only Uninstall

Is there an established way to uninstall an application that was deployed via ClickOnce using the Online Only method? I found it's location buried deep in the %APPDATA% tree, but I want to make sure I back it out all the way without creating future problems when I reinstall it. ...

how to check the read write status of storing media in python

Hi All, How can i check the read/ write permission of the file storing media? ie assume i have to write some file inside a directory and that directory may be available on read only media like (cd or dvd)or etc. So how can i check that storing media ( cd, hard disk) having a read only or read write both permission. I am using windows x...

How to save svg canvas to local filesystem

Is there a way to allow a user, after he has created a vector graph on a javascript svg canvas using a browser, to download this file to their local filesystem? SVG is a total new field for me so please be patient if my wording is not accurate. kind regards, Jeroen. ...

THE FASTEST Smarty Cache Handler

Does anyone know if there is an overview of the performance of different cache handlers for smarty? I compared smarty file cache with a memcache handler, but it seemed memcache has a negative impact on performance. I figured there would be a faster way to cache than through the filesystem... am I wrong? ...

Detect Symbolic Links, Junction Points, Mount Points and Hard Links

Hi, does anyone know how to check if a file or directory is either a Symbolic Link, Junction Point, Mount Point or Hard Link? As far as i know a symbolic links are detected by checking a file for its "ReparsePoint" attribute. Junction points are detected by checking a directory for the "ReparsePoint" attribute. So if the "ReparsePoint"...

Detecting a symlink in Java

Given a Java 'File' object, how can I detect whether or not it refers to a symlink? (If it helps/matters, I know the file refers to a directory, not to a file) ...

File.mkdir is not working and I can't understand why

Hello, I've this brief snippet: String target = baseFolder.toString() + entryName; target = target.substring(0, target.length() - 1); File targetdir = new File(target); if (!targetdir.mkdirs()) { throw new Exception("Errore nell'estrazione del file zip"); ...

Filesystem synchronization library?

Hi, I've got 10 GB of files to back up daily to another site. The client is way out in the country so bandwidth is an issue. Does anyone know of any existing software or libraries out there that help with keeping a folder with its files synchronized across a slow link, that is it only sends files across if they have changed? Some kind o...

Learning resources for Linux filesystem, command line, and structure

Can anyone suggest some good materials for learning more about the Linux filesystem and command line? I have found myself frequently confused as to what programs go where on the Linux filesystem. I would like to learn how the various directories (var, etc, usr ...) are used and how to use the commandline more effectively. I come from th...

Delete Range of Data From Text File With PHP

I want to delete a range of data from a text file using PHP. Let's assume the file contains the following: Hello, World! I want to delete everything from character 2 to character 7. The actual file I need to do this with is very large, so I don't want to have to read the large file in order to delete just a small, given range of data....

In ASP, is it possible to list files from a shortcut?

I created a shortcut, in Windows, to a folder. I then placed this shortcut in another place. Using ASP, is it possible to list the files in the folder via the shortcut? All folders, files, links, etc. are on the same drive. ...

How can I find the memory available on an SD card on a wince device (C++)

I'm looking for a way (on a pocketPC) to interrogate the size/remaining size of an SD card. I have to create some files on the SD card and I want to make sure there's enough room before I write to it. ...

How can i get user who deleted file?

I need to know which user deleted file in filesystem from c# code. Only one idea is to use audit, but it seem to be very slow... ...

Location of the fonts on the iPhone?

I'm using the FreeType2 library in an iPhone project, and I'm trying to simply load a TTF file from the system, if possible. FT_Library library; FT_Face face; int error; error = FT_Init_FreeType( &library ); if ( error == 0 ) printf("Initialized FreeType2\r\n"); /* Prints */ error = FT_New_Face(library, "/System/Library/Font...

Program visible to Linux as normal directory

I'm trying to write program to work as programmable directory, in other words: User, or other systems open that directory and read/write files or dirs. I try to create program to cache most used files in memory (less I/O to HDD), but right now I don't know how to achive that. There are probably some docs about this but I can't find them....

How to check if the block is present in a sparse file (for simple copy-on-write)?

How to get sparse block size and check if data is present at the given offset in sparse file in reiserfs/ext3 in Linux? I want to use it to implement simple copy-on-write block device using FUSE. Or I should better keep a bitmap in a separate file? ...

Java: how to get all subdirs recursively?

Before debugging the late-hour-out-of-bound-recursive-function: is there a command to get subdirs? giveMeSubDirs(downToPath)? // WARNING: RECURSION out of bound or too much data public HashSet<FileObject> getAllDirs(String path) { HashSet<FileObject> checkedDirs = new HashSet<FileObject>(); HashSet<FileObject> allDirs = new HashSet<...