LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

rename files programatically

I also found the move function in Labview very slow with large files and folders.

Calling the MovefileA windows API (thanks jschuler) performed the rename as expected.

Attached is the call to the windows API.  Being a newbie it took me a while to work this out.

Depending on your system, you may need to modify the path to kernel32.dll

Mine was located in "C:/windows/system32/"
Message Edited by Malteso on 02-24-2009 06:37 PM
Message 11 of 12
(2,446 Views)

"Malteso" <x@no.email> wrote in message
news:1235522413539-859623@exchange.ni.com...
> Depending on your system, you may need to modify the path to kernel32.dll

The path to kernel32.dll doesn't need to be (and should not be) specified.
LabVIEW will find it, if you just type "Kernel32.dll" in it's path. LabVIEW
uses the LoadLibrary API, and this function searches the windows system
directory for the dll.

Regards,

Wiebe.


0 Kudos
Message 12 of 12
(2,432 Views)