Hi there,
I am trying to write a script (preferably in bash) to flatten a java projet directory structure prepending the path to the file. Example:
| src
| org
| apache
| file2.java
| file1.java
would result in:
| src
| org|apache|file2.java
| org|file1.java
The script should be recursive since the directory co...
Trying to figure out if a file is in a folder that has been subst'd or is located in a user folder using C#
...
I have a .CAB file that runs as part of an installer process on a Windows CE box. The CAB is written in C++.
The CAB file is ran twice as part of an upgrade process but in different locations at different times. How can I find out what directory the .CAB file is being executed from (executing directory) using C++ only?
Thanks
...
I have written a small crawler to scan and resort directory structures.
It based on dirent(which is a small wrapper around FindNextFileA)
In my first benchmarks it is surprisingy slow:
around 123473ms for 4500 files(thinkpad t60p local samsung 320 GB 2.5" HD).
121481 files found in 123473 milliseconds
Is this speed normal?
This is my ...
I'd like to get the current directory during a GNUmake file run put into a make variable.
What is the syntax to do this? Something like this?
DIR := $(PWD)
...
I have a web application project made in Visual Studio 2008.
Well, I added a jquery folder and added it to source control and other such things. I forgot to add it to the visual studio project though. How do I add the existing folder now? I've tried just creating a new folder and naming it jquery but it gave me a cryptic error "the dire...
My application needs to access files on a remote machine that requires a username and password for accessing it.
I'm trying to find out if a directory exists (using Directory.Exists) to verify I can make the 'connection.
Is there a way to supply the username and password when working with remote directories? Currently Exists returns f...
I'm using the windows forms aplication with an ms access database. And i would like to know if there is a way to show the directory of the database file (to save data in it)excpet like this:
string connectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=save.mdb";
OleDbConnection empConnection = new OleDbConnection(con...
hi i have a few folders created by my application and id like that when they click a button named "clean up" that it would check to see if any of the predetermined folders exist, if they do then delete them, this is what i have tried so far whats wrong with it?
string tempFolder = Environment.GerFolderPath(Environment.SpecialFolder....
Hi, I have a main directory like :
/import/
and in /import/ i have lots of sub directories, containing audio files.
I would like to create a php script to move all the audio files from the sub directories into the main directory.
Thanks guys :)
...
I just setup PortablePython on my system, so I can run python scripts from PHP and I got some very basic code (Below) to list all the files in a directory, however it doesn't work with Japanese filenames. It works fine with English filenames, but it spits out errors (Below) when I put any file containing Japanese characters in the direct...
I want to use the maven-dependency-plugin to copy EAR-files from all sub-modules of my multi-module project to a directory that is relative to the root directory of the entire project.
That is, my layout looks similar to this, names changed:
to-deploy/
my-project/
ear-module-a/
ear-module-b/
more-modules-1/
ear-modu...
How can I do a foreach(File file in Directory) kind of thing in jQuery.
Thank you!
...
i got a QString blabla = qtfiledialog::getOpenFileName();
now blabla gives me the full path and the exe like: C:/Program Files/imanoob.exe
but i only want the path like: C:/Program Files/
how to do this?
...
I have a directory images/ that I want to copy to build/images/ from within a Makefile. The directory might contain multiple levels of subdirectories. What would be the most elegant way to do that? I want:
avoid a full directory copy on each make run (i.e. no cp -r)
guaranteed consistency (i.e. if a file changed in images/ it should be...
I want to search for files with .xml extension within my silverlight project, for example (ApplicationRoot)/Resources/102.xml
I know how to do this using System.IO.Directory:
// create a collection to hold the file enumeration
List<string> directoriesInFolder = new List<string>();
// using the file api to enume...
I'm writing a program that searches directories of a computer. On my own computer I have a drive installed which previously booted Windows Vista.
(However, there are drives that do not appear even when "show hidden folders".
I can see the folders running cmd, but that doesn't solve my problem.)
I don't care so much about the folders...
Hi guys
How to know IIS logfile directory using asp script file?
...
I need to convert a init.d script that uses ruby to not use ruby. I can use perl or python or something else, but I can't use ruby. My main problem is figuring out how to dynamically get the list of *.jar files in a directory and separate them with ':'. The rest I could easily do with a bash script.
Here is the Ruby code I'm working wit...
Hello,
I have a dir with thousands of files and 2 patch files that apply to the same dir. Each patch file patches 20-30 files in dir or it's subdirs.
If I apply either patch to the common ancestor dir, it succeeds.
But if I apply one patch file followed by the other, it fails because the line numbering has changed after one patch fil...