Copy Just the Folder - directory

I wanted to Copy just a single folder at a time from one location to another
Currently i hv to First go to the rename copy the name and come back to current location and create a new folder and paste the name
Just like TreeCopy Which copies folder complete structure
is there anything through which i can speed up this process and just generate a single folder from a 3000+ Collection of Folders
How can i copy just one folder from one location to another without copying anything inside it neither content nor sub folders.
if you know the way let me know.

I know how hectic that work can get, but luckily there's an easy way around this.
Type in the following command in command prompt(cmd).
I think you need to have administrator rights for this.
xcopy “c:\users\cdwyer\documents\OriginalFolder” “c:\users\cdwyer\documents\NewFolder” /T /E
The command is xcopy and it takes two parameters, the path of original folder and the path of new folder you want to create with the original folder structure.
/T is just another parameter that ensures to only copy the folder structure, not the files.
/E is another parameter you can include to make sure empty folders are created.
If you have any other queries, just go through this website.
https://camerondwyer.com/2013/07/05/how-to-copy-an-entire-folder-structure-without-copying-the-files-tip-for-starting-the-new-financial-year/

Related

Copy a project from one directory to another directory - YII2 basic

I have created one project in yii2-basic. In that I had done the some changes in the bootstrap.css in the web/assets/dir/.
Now I need to deploy this into another directory. I copied that project into another directory. Then I run in the browser. The changes I had done in the files are not affecting to the site. Then it refers to the another file for css.
I can't find the correct way to do this. Can anyone show me the correct way to do this?
for changing the css you should change the original in the
.\basic\vendor\bower\bootstrap\dist\css
then minimize it
and then in the dir web\asset you must delete the dir where is place the bootstrap (bootstrap-min.css i guess) files
There isn't a fixed name for this asset dir, you must find yourself the correspondent dir containing all the bootstrap part (css, js , fonts). and then remove (cancel) this dir.
Removing this dir when you accessing to the app the dir is newly recreate (normally with another asset id name).
If you don't do this when you copy a project in a new dir, at the first access the asset directory are newly create and the code you have change is not reached by application.

move dynamically uploaded files in asp

I am having a application that uploads files according to the user input..i just want to move that particular file to moved to another folder..
Now i am able to move the files to the destination folder..but it moves all the files which is already there in the folder..
i am creating a folder dynamically while uploading the files..and i need that file to be moved to that created folder...
I need to move only the uploaded file during run time...
E:\Export Documents - Copy\Uploads this path to C:\inetpub\wwwroot
this is my code
Set oFS = Server.CreateObject("Scripting.FileSystemObject")
strDir = "c:\inetpub\wwwroot\" & fldr
oFS.CopyFile "E:\Export Documents - Copy\Uploads\*.jpg", "c:\inetpub\wwwroot\" & fldr
What you probably want to do is identify the file you have just uploaded and then move that. If you are already creating a folder to store the files in in inetpub, you might as well do the same in Uploads, and then just move that folder.
You will probably find it helpful to use fileSystemObject.MoveFolder instead of .CopyFile so that your Uploads folder does not fill up.
If you want some help with how to do that, post the code you are using to upload your file.
For working with the FileSystemObject, this is a useful reference
On another note, is it really wise to move files from Uploads into wwwroot? A malicious user could do some damage in there.

Changing the location of a folder without affecting the path(s) stored in the database

I have a folder that stores images and the paths to the images are stored in the database. There are almost 2500+ employee images stored there.
If I want to change the physical location of the folder that has the images, how do I manage the stored paths in the DB and the virtual path, root and all the related info.
Well, here is what I would do:
Copy your images to the new directory. (Leave the old directory in place for now)
Run a SQL update script on your DB to change the stored location. (Without knowing your db structure I can't say more.)
Update your app code to point to the new directory.
Test your app to verify that is uses the new directory.
Rename the old directory to something else, so that any link to it would break.
See if anything is broken, and fix it!

How do I get msbuild to put my web application in the root output folder and not in _PublishedWebsites

How do I get msbuild to just put my web application in the output path, and not in the hacky special _PublishedWebsites folder? I don't want to modify global config files, but I am willing to edit my .csproj file.
You can override WebProjectOutputDir to go to whatever directory you like, however the binaries will still be in this folder as well. Still trying to figure out how to fix that...
EDIT I ended up making my msbuild output directory my output directory with '/bin' tacked on to the end, and I made my WebProjectOutputDir the real output directory.

Xcode 4 project template adds extra folder

When I make a new project with xc4 I don't want it to create a folder with the same name as the project. I want the source files associated with a project template to get copied into several other folders that sit next to the project.
In the TemplateInfo.plist, I can specify which files to copy through the Definitions and Nodes arrays. In the Definitions, if I make the name ../Example.cpp then it will copy the file into the directory with the project rather than into the folder that has the project's name, which is what I want. But, if i delete that empty folder then xcode can no longer find any files because all files had to be specified relative to the auto-created folder.
Does anyone know how to get around this? Is there some way to specify which folder project files should be relative to? Or perhaps some other way to specify relative paths for files in a project template?

Resources