MSDOS BAT Problem

Hello,
I need to check if a file in my D:\somedir directory begins with "app..." and if it begins then need to rename it to somename. I also need to do this until there is no more file left in this directory.
Can anyone help.
[243 byte] By [BlackWidow] at [2007-11-19 19:42:35]
# 1 Re: MSDOS BAT Problem
I can't think of any way to do that with in MS-DOS.
Brenton S. at 2007-11-10 3:39:04 >
# 2 Re: MSDOS BAT Problem
Since you will be using batch, one of the easiest programing laguages ever, you might wanna use an If statement, such as

If file_name = "app.." Then

************

End if

I am not sure this is the setup for an If statement in batch, but it would be easier to do this in VB, or possibly C,C#, or C++.
MeetingU at 2007-11-10 3:40:04 >
# 3 Re: MSDOS BAT Problem
Brenton S. is correct. This cannot be done just using DOS. You can however script it very easily or use QBASIC or Visual Basic. Just about any language can do this.
PeejAvery at 2007-11-10 3:41:06 >