How to transfer the word file .docx format to .doc format

Dear all,

I have a question wanna to inquire you that how could I transfer the word file in docx(or doc) format to doc(or docx) format automation . I mean use some activities of UiPath, transfer all the docx(or doc) to doc(docx) format files .

Anybody who could give me a hand ? thanks a lot in advance.

Best Regards

I don’t recommend this at all, but give a try @Chris-Yiwei

Make sure you have a back up of the original file before doing the below step

Use move file activity and provide the source path of file with “.docx” extension and destination as “.doc”. Check if the file is with the exact format or anything missing

1 Like

Hi,

You can use UiPathTeam.FileConverter.Activities (available in Go)

image

1 Like

yes thats absolutely possible
–use a assign activity like this
arr_filepath = Directory.GetFiles(“yourfoldername”,"*.docx")
this will give us all the docx file in the folder we have mentioned and the variable arr_filepath is a string array variable

–now use a for each activity and pass the above variable as input and in the property panel change the type argument as string
–inside the loop use a move file activity where mention the input as item and in the destination property mention like this
"yourfolderpath"+"\"+path.GetFilenameWithoutExtension(item)+".doc"

hope this would help you
Cheers @Chris-Yiwei

@Chris-Yiwei,

Perfect solution by @msan. Try those.

hey
i used this methods, the word files are broken, they could not open .