|
Answer» eg . I have a file call "200907.txt" , I need to CAPTURE a part of the file NAME "07" to the other file. How can I do it??
Many Many Thanks~dont understand what ur askingit has a file call '200907.txt'. then i want only capture the 5th and 6th letter (07) of thr file name as parameter ? How can i capture it ? Really thanks TYPE set /? on your command prompt, read on and you will find the solution.. thanks for your reply but i require to capture the part of the file name as a VARIABLE. such as a file name call 200708.txt and i only need the 5th and the 6th letter
but anyway thanks a lot i have already told you where to look...just takes a few minutes to read through set /? QUOTE ... The /P switch allows you to set the value of a variable to a line of input entered by the user. Displays the specified promptString before reading the line of input. The promptString can be empty. ..... ..... ....
May also specify substrings for an expansion.
%PATH:~10,5% .......
Yes, cityjack, ghostdog74 already told you where to look.
|