subfolder

batch file to merge .js files from subfolders into one combined file

I'm struggling to get this to work. Plenty of examples on the web, but they all do something just slightly different to what I'm aiming to do, and every time I think I can solve it, I get hit by an error that means nothing to me. After giving up on the JSLint.VS plugin, I'm attempting to create a batch file that I can call from a Visua...

I need to find a file in directory and copy it to a different directory

I merely have the file name, without extension (.txt, .eps, etc.) The directory has several subfolders. So, the file could be anywhere. How can I seek the filename, without the extension, and copy it to different directory? ...

Copy all files/subfolders to Testrun Out dir?

I need to copy all files and subfolders from a specified path to my testrun Out folder. I only want this to happen for certain tests (so, no global solution, like the Deployment section in the Testrunconfig file). I have a solution structure like this Solution\ Project\ Project.Test\ Resources\ FolderA\ Fold...

ASP.NET C# Copy Directory with SubDirectories with System.IO

Hello all, I need to copy a whole directory C:\X to C:\Y\X, and I need the sub-folders to be copied as well. Is there any way to do it with the System.IO.File\Directory namespaces ? Thanks for all helpers! ...

Vbscript - Checking each subfolder for files and copy files

I'm trying to get this script to work. It's basically supposed to mirror two sets of folders and make sure they are exactly the same. If a folder is missing, the folder and it's content should be copied. Then the script should compare the DateModified attribute and only copy the files if the source file is newer than the destination f...

SubProject OR SubFolder ?

I am writing an asp.net application that exposes data in 2 ways: 1 - 1 common section that all users can see 2 - a Section that displays data specific to a registered user. in this case the user can decide how it looks (through themes), and manage the data to be displayed. Of course, the logic behind is the same, appearance would be dif...

Rails: Creating subfolders in model?

I'm going to have a ton of subclasses, so want to organize them under a subfolder called stream. I added the following line to the environment.rb so that all classes in the subfolder would be loaded: Rails::Initializer.run do |config| ... config.load_paths += Dir["#{RAILS_ROOT}/app/models/*"].find_all { |f| File...

Syntax for loading observers (in a model subdirectory) in environment.rb?

I have a lot of model observers, so I want to organize them in a subdirectory under the model folder. model --> observer --> user_observer.rb, activity_observer.rb, etc. Prior to placing in the subdirectory, I was loading the observers like this: Rails::Initializer.run do |config| config.active_record.observers = :user_observer, :...

Limiting RecursiveIteratorIterator() recursion depth

Hi everybody, i'm using RecursiveIteratorIterator() to explore subfolders of my current path, but in this way all trhe tree is explored, instead i want just the direct childern of my fodler to be explored for files. How can i say to RecursiveIteratorIterator() to not go much further and stop to the first subfodlers of the current folder...

.htaccess redirect from directory it's in to specific subdirectory without filename

Hello, I have a server. (Apache). On this server there is a subdirectory (subdir1). In this subdirectory, I have an .htaccess file. How can I set up this .htaccess file to redirect me from the directory it is in (regardless of what the directory is called) to a specific subdirectory? Redirect {current .htaccess directory} {current .hta...

How to reference a file on users desktop with Applescript

Hello, I'm pretty new to Applescript and am trying to reference a file on the currently logged-on user's desktop, but I don't know how. In POSIX you'd use the tilde character to specify the user's home folder, but that doesn't seem to work in applescript. I've read other posts about how "desktop" is already defined as a keyword applescr...

CakePHP, issue with subfolder after creating virtualhost for domain name

I originally installed my cakephp in a subfolder of my localhost folder (so in linux my localhost is set to: /var/www and I installed cakephp to: /var/www/site1 I had been using it at this address, so: http://localhost/site1 But now I am putting it up as a live site and I made a virtual server with apache so now this goes directly...

Subfolders in subdomains

I have a site: myname.host.com I have a domain: www.myname.nl I have some subfolders for different subsections but also completely unrelated websites. How do I make sure in the DNS setup that: blog.myname.nl gets me to myname.host.com/blog/ blog.myname.nl/archive gets me to myname.host.com/blog/archive blog.myname.nl/randomfolder get...

Subfolder traversal

I have a set of subfolders 3 levels deep over with over 20k files in c:\MyData. There is an almost identical set of subfolders on my E drive at e:\projects\massdata I want to check in C and anything that already exists in E (same folder name, same file name, same size), I want to delete from C. What is my best way of traversing this f...

ASP:Upload control . Uploading into a SharePoint Document Library Subfolder and FILE NOT FOUND error

RE: ASP:Upload control . Uploading into a SharePoint Document Library Subfolder and FILE NOT FOUND error Two Issues, apparently unrelated. I have subfolders like this /ApplicantDocuments/20 and /ApplicantDocuments/21 (where 20 and 21 are my subfolders and ApplicantDocuments is my library. The below function is erroring with file not ...

IIS7 Basic Authentication on PHP Site

I have a PHP5 site running on IIS7 and I just wanted to add basic authentication on a subfolder called admin. I enabled both anonymous authentication and basic authentication and I just want to turn off anonymous authentication on the subfolder in order to force the basic authentication? Any suggestions? I tried adding a web.config in...

Wix: Add shortcut not in a subfolder!

Hello, I want to add a shortcut in my program menu. i tried: <Component Id='myId' Guid='E4DED108-0129-4a5b-83FE-C9D1E3025B00'> <File Id='MyFileID' Name='Prog.exe' DiskId='1' Source='.\Prog.exe' KeyPath='yes'> <Shortcut Id='myShortcut' Name='Prog' Icon='MyIcon.exe' IconIndex='0' Directory='ProgramMenuDir' Adver...

When moving a folder in the server, correct all links

Lets say I have this folder on my server called books. Inside I have and index.php with this links: books/book1.php books/book2.php I then decide to create a subdirectory called "scifi", for a better sorting of the books. So the books are no in: books/scifi/book1.php books/scifi/book2.php The links have changed and now the links on i...