LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

create a folder

hi..

I want to create a new folder and and save a file in that folder. My problem is when i stop and run back the vi, it will create a new folder in the existing folder. i want to make when there is an existing folder, my program will save file in the existing folder without making a new folder inside the existing. please help me...

thanks..
0 Kudos
Message 1 of 7
(2,893 Views)
Hi gdah,
i can´t open your vi at the moment. Check first if the folder already exists and create the new one only if not.

Hope it helps.
Mike
0 Kudos
Message 2 of 7
(2,889 Views)

Hi gdah,

you can also use the "exists" output of the File Dialog to check if the user selected an existing folder or not! I think you get only problems if you press the wrong button in the dialog. if you press "save" then it could be that you create a new folder and if you press select folder then the folder definitivly exists.

Hope it helps.
Mike

0 Kudos
Message 3 of 7
(2,876 Views)
hi..heheheee....thanks..i click the wrong buttonSmiley Very Happy
0 Kudos
Message 4 of 7
(2,871 Views)
sorry..btw..i have try again my program. i change the filename to db2 and error2. the folder data and error already exist. i run my program and clicked at the current folder button. Yes..it not making a new folder inside the existing. but i cannot save my file in the existing folder. i noticed that the path is wrong..please help..
0 Kudos
Message 5 of 7
(2,868 Views)
hi...sorry..i have solved the problem..thanks
0 Kudos
Message 6 of 7
(2,866 Views)
Hi gdah,
this should work for you. See the attached picture please.
Mike
0 Kudos
Message 7 of 7
(2,865 Views)