Search found 5 matches

by dheerajreddy926
19 Apr 2012 13:46
Forum: DOS Batch Forum
Topic: How to copy a folder with the given input
Replies: 7
Views: 4322

Re: How to copy a folder with the given input

while tryn in my local i dint give %%a at the end of destination folder ... now i m successful in copying..thanks mate :)
by dheerajreddy926
19 Apr 2012 11:23
Forum: DOS Batch Forum
Topic: How to copy a folder with the given input
Replies: 7
Views: 4322

Re: How to copy a folder with the given input

@echo off cls set "RN=" SET /P "RN=enter release number eg : 2012.20.00++22.01 :" pushd "C:\test1" for /f "delims=" %%a in ('dir "%rn%*" /b /ad') do ( echo copying "%%a" XCOPY "%%a" "C:\test3\" /T /E ) popd REM "%Sy...
by dheerajreddy926
19 Apr 2012 11:10
Forum: DOS Batch Forum
Topic: How to copy a folder with the given input
Replies: 7
Views: 4322

Re: How to copy a folder with the given input

I tested the code in my local laptop. enter release number eg : 2012.20.00++22.01 :2012.20.00++22.00 copying "2012.20.00++22.00_yyjdkd" Overwrite C:\test3\1\New Text Document.txt (Yes/No/All)? y 2012.20.00++22.00_yyjdkd\1\New Text Document.txt 1 File(s) copied Press any key to continue . ....
by dheerajreddy926
19 Apr 2012 09:37
Forum: DOS Batch Forum
Topic: How to copy a folder with the given input
Replies: 7
Views: 4322

Re: How to copy a folder with the given input

Hi I dint solve my problem what is got from ur code is like it will copy the items which are after the folder %RN% but %RN% is not the entire folder name. for ex 2012.20.30_rhdhkdn is the folder i wanna give input as 2012.20.30 and thescript should copy the folder whose folder name starts with 2012....
by dheerajreddy926
19 Apr 2012 07:50
Forum: DOS Batch Forum
Topic: How to copy a folder with the given input
Replies: 7
Views: 4322

How to copy a folder with the given input

Hello All, I am new here .I am struggling to find a solution. I need a batch script to copy a folder which is in the form XXXXX_YYYYYYYY Eg: i want to copy folder 2011.50.00++22.00_2011-11-23_6-08-43_PM to another folder .For this i want to give input as 2011.50.00++22.00 which is unique . I have wr...