Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert.bat 1

Status
Not open for further replies.

Preetham16

IS-IT--Management
Dec 28, 2006
32
DE
I want to convert an Htm file to Html.

I want to view the html file in Mobile device and I have 30 htm files which have to be converted to html every day. The Mobile device is not accepting the *.htm but accepting *.html. I tried using the following codes but none of them helped ....

Ren M:\files\*.htm M:\files\*.html
Rename M:\files\*.htm M:\files\*.html
Replace M:\files\*.htm M:\files\*.html

Could any one please help me...

Thank you in advance

PR
 
Just in case there are any spaces in the file names, you might try:
Code:
ren "M:\files\*.htm" "M:\files\*.html"

Are the files actually on M drive in the files folder?

Lee
 
Sorry but it doesnt work ...
Yes the files under the M drive and under the folder Files ...

Should I try any other way ...??
 
You are doing this in a command window?

___________________________________________________________
If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
Steam Engine Prints
 
Hello all

I found the solution the correct syntax to convert the files in Batch is following

ren M:\files\*.htm *.html

Thank you people...

Regards
Pr
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top