You need to provide more detail regarding what and why you need to do this. There is no DOS in Windows 7. You can highlight the file name, right click, select "Rename" and use a shortened file name from within Windows.
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this
site. Computing.Net and Compnet Ventures, LLC hereby disclaim all responsibility
and liability for the content of Computing.Net and its accuracy.