Search found 15 matches

by Danny
08 Jan 2014 06:59
Forum: DOS Batch Forum
Topic: Recursively search in sub folders and move files
Replies: 7
Views: 6586

Re: Recursively search in sub folders and move files

Hi,

My apologies, foxidrive i will not repeat this in future.
by Danny
06 Jan 2014 22:27
Forum: DOS Batch Forum
Topic: Recursively search in sub folders and move files
Replies: 7
Views: 6586

Re: Recursively search in sub folders and move files

Why is it that you didn't give feedback in this thread? http://www.dostips.com/forum/viewtopic.php?f=3&t=5225 Its perfect, Infact i wanted to hide myself, you will say how many question this fellow is asking. Its perfect and thats made me to asked this question, i have always got the answers fr...
by Danny
06 Jan 2014 22:02
Forum: DOS Batch Forum
Topic: Recursively search in sub folders and move files
Replies: 7
Views: 6586

Re: Recursively search in sub folders and move files

Please provide better details for the filenames Thankyou very much for your response. The description of file name 1. For files type 1 it will not have duplicates why all the upload folders will deliver different names files. 1*ddmm.txt means 1 is type of report and its compulsory ----------- next ...
by Danny
06 Jan 2014 15:34
Forum: DOS Batch Forum
Topic: Recursively search in sub folders and move files
Replies: 7
Views: 6586

Recursively search in sub folders and move files

Hi, This codes are moving the files from soruce folder to destination perfectly. @echo off for /f "tokens=2 delims==" %%a in ('wmic OS Get localdatetime /value') do set "dt=%%a" set "YY=%dt:~2,2%" & set "YYYY=%dt:~0,4%" & set "MM=%dt:~4,2%" &...
by Danny
04 Jan 2014 06:01
Forum: DOS Batch Forum
Topic: Combine files and create a single file
Replies: 8
Views: 8644

Re: Combine files and create a single file

Hi,

Yes the folder is empty, infact this "F:\Repository\%%~nxa\%datestamp%\download\TEXT\" creates the TEXT folder if it does not exits and then copies from the source to destination.

Thanks.
by Danny
04 Jan 2014 00:33
Forum: DOS Batch Forum
Topic: Combine files and create a single file
Replies: 8
Views: 8644

Re: Combine files and create a single file

foxidrive wrote:Do you mean all the files that are copied by the command above? Are there any other files in the TEXT folder that need to be included in the combinedfile?


Hi,
No, there are no other types of files in the TEXT folder, Only .txt files.

Thanks in advance.
by Danny
03 Jan 2014 14:31
Forum: DOS Batch Forum
Topic: Combine files and create a single file
Replies: 8
Views: 8644

Combine files and create a single file

Hi, Below script copies the files to my backup drive with ease, now when all the text files are copied in destination folder i want to combine them and create a single text file while removing the header line the first line in the text file and then delete all the text files and preserve this combin...
by Danny
24 Nov 2013 08:25
Forum: DOS Batch Forum
Topic: Create folders in ascending order
Replies: 2
Views: 3209

Re: Create folders in ascending order

Thanks AiroNG for response.
It works

Thanks
by Danny
24 Nov 2013 06:40
Forum: DOS Batch Forum
Topic: Create folders in ascending order
Replies: 2
Views: 3209

Create folders in ascending order

I want to create multiple folders inside a directory (i.e. Folder1, Folder2,...). The folders will always be in ascending order starting from "000" and go up. (i.e. 000,001,002...) Each time the script is run it will ask through a prompt stating "How many folders would you like to cre...
by Danny
13 Nov 2013 22:41
Forum: DOS Batch Forum
Topic: Move files of todays date
Replies: 4
Views: 19422

Re: Move files of todays date

Thanks foxidrive.
by Danny
13 Nov 2013 21:55
Forum: DOS Batch Forum
Topic: Move files of todays date
Replies: 4
Views: 19422

Re: Move files of todays date

Hello foxidrive,

foxidrive wrote:Did you mean to copy files from subdirectories as well?
YES.

Thanks.
by Danny
13 Nov 2013 15:28
Forum: DOS Batch Forum
Topic: Move files of todays date
Replies: 4
Views: 19422

Move files of todays date

Hello, This codes moves all *.xml files from source folder to target folder, creating on date folder. I want to move only todays date file to target folder. File name : PRD_005_ 14112013 _132228_01.XML @echo off set mydate=%date:~-10,2%-%date:~-7,2%-%date:~-4% Xcopy /E /I "C:\xml_4\xml\*.xml&qu...
by Danny
31 Oct 2013 00:57
Forum: DOS Batch Forum
Topic: Recursively Search for Text file and Edit
Replies: 4
Views: 4920

Re: Recursively Search for Text file and Edit

Hi,

This structure:
/root/001
/root/002
/root/003
...
/root/100
by Danny
30 Oct 2013 23:27
Forum: DOS Batch Forum
Topic: Recursively Search for Text file and Edit
Replies: 4
Views: 4920

Recursively Search for Text file and Edit

Hello, I need to search for text file [.txt] in directories and delete the first line from multiple text files inside them. Folder structure : Root folder ---> Folders from 001 to 100, recursively search range of folders only, please don't edit other folders text files except this (from 001 to 100) ...