WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: mtruong1 on December 03, 2013, 10:34:00 AM

Title: file rename
Post by: mtruong1 on December 03, 2013, 10:34:00 AM
Hi,

How do I remove an extension from a file.  For example, I have a file name "mike.mig.done" and I want to remove the .done extension.
I want to end up with the file name "mike.mig".

I tried to use the FileRename command but not sure how.

Thanks

mtruong
Title: Re: file rename
Post by: RAK on December 03, 2013, 10:57:04 AM
a = fileroot (file)
message ('root',a)