LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Automatic rename of documents

Hello,

 

I have an issue regarding a VI that simulate the Printing of a report web page .xml using the class IWebBrowser2 and shows a save as window to rename and save the file in a specific location manually by the user (i think that the invoke node that call the method ExecWB is the one responsible for the print and save action).

 

i want to rename many files automatically without interaction from the user, i have many report files .xml and there name are in an array of string.

can anyone give me help.

You'll find the VI attachment below

 

thanks in advance

0 Kudos
Message 1 of 4
(743 Views)

Hi Fet,

 


@abdelFet wrote:

i want to rename many files automatically without interaction from the user, i have many report files .xml and there name are in an array of string.


Use a loop to iterate over your name array. Use BuildPath/FileMove inside the loop to rename your files…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(739 Views)

Hello GerdW,

 

Can you give me some detail about this changes that you suggest while i'm beginner in this type of advanced programming with labview, for my code this is what's appear in the attachment picture file, is a window that display a save as of the xml file selected and demand to rename it.

 

Can you help me with more detail.

 

thanks in advance.

Fet

0 Kudos
Message 3 of 4
(729 Views)

Hi Fet,

 


@abdelFet wrote:

i want to rename many files automatically without interaction from the user, i have many report files .xml and there name are in an array of string.


Like this:

It's the basic principle, you may add error checking and so on…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 4
(687 Views)