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]

# 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++.
# 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.