LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

easy way to rename all files and folders in a specific directory

hy all,
 
i want to rename all files&folders in a specified folder... i only want to replace all "_'_" with an"-" in all file names...
 
example:
 
TCHK1_B4194W01PF7_NMOSi_D_B__3_50ohm-500ohm_03-29-07_10'46'23_AM.tst
 
TCHK1_B4194W01PF7_NMOSi_D_B__3_50ohm-500ohm_03-29-07_10-46-23_AM.tst
 
i cant change the timeformat because this are automatically generated files from an external program...
 
this is my program(attached as JPG) but it doesnt work...i get allways "error 10-duplicate path" or "error1 -   An input parameter is invalid"
 
could sombody please help me... i think its an easy VI but i cant get it working
 
THANKS in advance!!!!
 
greets
 
Andreas
 
 
 
0 Kudos
Message 1 of 2
(2,743 Views)
Well, the one problem you have is that for the "Move" function, the source file input should be wired to the output of the "Build Path" function, not to the duplicate path out of the "List" function. Also, you need to pass the error cluster around with a shift register. Otherwise you will not catch an error that may have occurred during one of the file rename operations.
0 Kudos
Message 2 of 2
(2,717 Views)