Operating environment: under WINXP and the DOS under WINXP -(not pure DOS)
Under a certain partition there are two directories with the same name, only the number at the end is different.
For example: "Pro Evolution Soccer 5" "Pro Evolution Soccer 6"
Under DOS their names show up as "proevo~1" and "proevo~2"
Using if not exist "X:\proevo~1" xcopy "N:\proevo~1 /i /e" copies “Pro Evolution Soccer 5" to X:....
If after that I also want to use this statement to copy "proevo~2" to X:, then it is:
if not exist "X:\proevo~2" xcopy "N:\proevo~2 /i /e" and it will copy “Pro Evolution Soccer 6" to X:....
I'd like to ask: without changing these two statements, under DOS how can I make it so that when I copy "Pro Evolution Soccer 6" it will automatically check whether the "proevo~1" directory exists, and if it does not, automatically rename the copied "proevo~2" under X: to "proevo~1"
but under WINXP it would still appear as the "Pro Evolution Soccer 6" directory?
Thanks~~~~~!!!!!!
─────────────────── Moderator record ────────────────────
Handled by: namejm
Original title: Question about long file directory names... please help~~~
Note: Because the title is too vague and inconvenient for forum searching and management, please modify the title within three days.
Penalty: Since this user is not a newbie on the forum and should understand this forum's posting rules,
2 points have therefore been deducted from the 4 credits earned for making this post. If no corresponding action is taken within three days after this notice is posted, the moderator will forcibly change the title.
Suggestion: If you object to this handling, please clickhereto go toFeedback & Member Discussion and post an appeal in that section; if this really was improper handling,
I will cancel this action, and if necessary, will also take other appropriate measures to remove the adverse impact on you.
─────────────────── Moderator record ────────────────────
[ Last edited by namejm on 2006-11-23 at 05:58 PM ]
Under a certain partition there are two directories with the same name, only the number at the end is different.
For example: "Pro Evolution Soccer 5" "Pro Evolution Soccer 6"
Under DOS their names show up as "proevo~1" and "proevo~2"
Using if not exist "X:\proevo~1" xcopy "N:\proevo~1 /i /e" copies “Pro Evolution Soccer 5" to X:....
If after that I also want to use this statement to copy "proevo~2" to X:, then it is:
if not exist "X:\proevo~2" xcopy "N:\proevo~2 /i /e" and it will copy “Pro Evolution Soccer 6" to X:....
I'd like to ask: without changing these two statements, under DOS how can I make it so that when I copy "Pro Evolution Soccer 6" it will automatically check whether the "proevo~1" directory exists, and if it does not, automatically rename the copied "proevo~2" under X: to "proevo~1"
but under WINXP it would still appear as the "Pro Evolution Soccer 6" directory?
Thanks~~~~~!!!!!!
─────────────────── Moderator record ────────────────────
Handled by: namejm
Original title: Question about long file directory names... please help~~~
Note: Because the title is too vague and inconvenient for forum searching and management, please modify the title within three days.
Penalty: Since this user is not a newbie on the forum and should understand this forum's posting rules,
2 points have therefore been deducted from the 4 credits earned for making this post. If no corresponding action is taken within three days after this notice is posted, the moderator will forcibly change the title.
Suggestion: If you object to this handling, please clickhereto go toFeedback & Member Discussion and post an appeal in that section; if this really was improper handling,
I will cancel this action, and if necessary, will also take other appropriate measures to remove the adverse impact on you.
─────────────────── Moderator record ────────────────────
[ Last edited by namejm on 2006-11-23 at 05:58 PM ]
Recent Ratings for This Post
( 1 in total)
Click for details
| Rater | Score | Time |
|---|---|---|
| namejm | -2 | 2006-11-24 06:59 |
