Read and create files with . bat
Posted: 29 Oct 2013 18:39
Hello everyone!
I'm new to this forum but I thank in advance anyone help me!
I am writing to ask for help, I need to create a .Bat file that performs the following tasks:
Given a specific path ( eg c:\source ) in which there is a single file A_stringSource.Txt (Example A_123456789.txt )
write in another folder ( eg c:\destination) 5 empty files .dat format name with a string that I decide + the string of the name of the source file. So in the destination folder there should be 5 empty files with name:
StringDestination1+StringOrigin.Dat
StringDestination2+StringOrigin.Dat
StringDestination3+StringOrigin.Dat
StringDestination4+StringOrigin.Dat
StringDestination5+StringOrigin.Dat
The destination string is fixed and I'll decide within the batch file. The user does not insert any data.
For example, in our case:
string1123456789.dat
string2123456789.dat
string3123456789.dat
string4123456789.dat
string5123456789.dat
I hope I have explained well my problem.
I will be very much grateful to anyone who can solve this problem!
One smack for all!
I'm new to this forum but I thank in advance anyone help me!
I am writing to ask for help, I need to create a .Bat file that performs the following tasks:
Given a specific path ( eg c:\source ) in which there is a single file A_stringSource.Txt (Example A_123456789.txt )
write in another folder ( eg c:\destination) 5 empty files .dat format name with a string that I decide + the string of the name of the source file. So in the destination folder there should be 5 empty files with name:
StringDestination1+StringOrigin.Dat
StringDestination2+StringOrigin.Dat
StringDestination3+StringOrigin.Dat
StringDestination4+StringOrigin.Dat
StringDestination5+StringOrigin.Dat
The destination string is fixed and I'll decide within the batch file. The user does not insert any data.
For example, in our case:
string1123456789.dat
string2123456789.dat
string3123456789.dat
string4123456789.dat
string5123456789.dat
I hope I have explained well my problem.
I will be very much grateful to anyone who can solve this problem!
One smack for all!