Dealing with file properties C#
I want to get the file size of any given file using the C#, and I need to show it in GB, MB, KB and bytes if possible ... and for audio (mp3) files, I need to get the duration of the file ... ...
I want to get the file size of any given file using the C#, and I need to show it in GB, MB, KB and bytes if possible ... and for audio (mp3) files, I need to get the duration of the file ... ...
Is there a Coding way in C++ to find out the changes happened in Registry and file system. I need to find the changes happened to file system and registry after a software installion. There is filesystemwatcher in c# to identify filesystem changes. However, I need that to implement in C++ for both registry and files. ...
Has anyone done any performance/benchmarking tests on Linux loopback file systems? What has your experience been so far. Is there any serious degradation in performance? How about robustness? http://freshmeat.net/articles/virtual-filesystem-building-a-linux-filesystem-from-an-ordinary-file PS: I am asking this question on stackoverflow...
I've been tasked with processing multiple terabytes worth of SCM data for my company. I set up a hadoop cluster and have a script to pull data from our SCM servers. Since I'm processing data with batches through the streaming interface, I came across an issue with the block sizes that O'Reilly's Hadoop book doesn't seem to address: wha...
hi, I wish to understand the way kernel works when a user/app tries to create a file in a directorty. The background - We have a java applicaiton which consumes messages over JMS, processes it and then writes the XML to an outbound queue+a local directory. Yesterday we obeserved unsual delays in writing to the directory. On 'ls|wc -l' ...
For an application I'm writing, i want to programatically find out what computer on the network a file came from. How can I best accomplish this? Do I need to monitor network transactions or is this data stored somewhere in Windows? ...
I have written a DotUnit test suite for testing some data import functionality in my application. It works by making a backup of some local Microsoft Access Database, let's call it 'Test.mdb', to 'Test.mdb.bak', performing some data import (and subsequent Assert checks) and then restoring the original from the backup. The SetUp() functi...
Hey guys / gals, I have come across several "solutions" here and across the web but none seem to fit the bill. What I am looking to do is have an app monitor a folder for new files (either by creation, a move, or a copy) and perform actions on those objects. That being the scenario, I turned to the FileSystemWatcher class to perform t...
This path "/proc/bus/input/devices" on fedora 10 for read devices information. then where are path of read devices information for Windows Xp. ...
Hi there, I have created a feature to upload and download file in my site. But I want to validate the download feature. I want to allow a user to download file if user is already logged in to my site and given permission to download. Help me. How to check whether session is present there or not? I am uploading files in /app/webroot/doc...
In a shell script how would I find a file by a particular name and then navigate to that directory to do further operations on it? From here I am going to copy the file across to another directory (but I can do that already just adding it in for context.) Thanks in advance :) ...
I'm on windows 7 with wamp and I don't know where to put the zend framework, as I know I need to change the path of the include_path but I don't know what should that be to work. I get this error when I open the test files or anything withing the zend files: Warning: require_once(PHPUnit/Framework.php) [function.require-once]: ...
I am working on a project in Java which has a directory structure something like this: MainFolder / | \ Folder1 Folder2 Folder3... | Program.jar|Run.sh In Folder1 I have main jar file along with the shell script to run the program. In Folder2 I'm having configuration files in xml which may later be modified ...
I have a web service which allows the users to upload and keep track of their files on the server. What I want to do is create some sort of application which recreates my "online file system" on the local machine. Kind of like having a folder on my desktop which presents the files I have on the webserver, where I can move them, open, sa...
So NTFS uses a 128-bit Guid to identify files and directories, you can view this information easily enough: C:\Temp>C:\Windows\System32\fsutil.exe objectid query . Object ID : ab3ffba83c67df118130e0cb4e9d4076 BirthVolume ID : ca38ec6abfe0ca4baa9b54a543fdd84f BirthObjectId ID : ab3ffba83c67df118130e0cb4e9d4076 Domain ID : ...
Why are there no good drivers for Windows for reading ext2/3/4 filesystems? Googling around indicates that there's 2 or 3 out there, but all of them have problems. Is there some technical inconsistency that makes it difficult to correctly code up something that would enable me to open up My Computer and work with an extN partition just...
I am confused about the exact limitations on folder names in an ISO 9660 (Level 1) compliant filesystem. I read through the wikipedia page and it says: File names are limited to eight characters with a three-character extension, using upper case letters, numbers and underscore only. - wikipedia When it says 'File Names' does it re...
I am porting an application from Embedded Windows to Android. There is an Access Database involved and I have exported the data to a set of txt files. I am writing a utility to read the files and create a SQLite DB. I have the files on my D Drive of my desktop where I am doing my development. How do I access the files, Specify the di...
I ran into this quite often stated problem but even after looking up nearly every scource I didn’t get an aswer. Problem is as follows: I wrote a little updater tool that connects to a server to check for new versions of an application and then copies the new version to the clientmashine. So the pattern is as follows: Client installs t...
I need to keep a filesystem shared between two nodes in different locations, in a way fully redundant, so that programs running in both nodes should see the whole filesystem. The situation is that a datafile could be stored in any of the nodes, then a program running in the other could have been notified by a third party about the exist...