LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Save files

Hi,

How can I save one file in one folder which at the same time this folder has another folder inside

0 Kudos
Message 1 of 12
(3,250 Views)

Hi,

 

Your question is not very clear, can you make it more precise ?

Do you want to creat the folder ?

What kind of file are you trying to save ?

0 Kudos
Message 2 of 12
(3,208 Views)

Yes, I want to create a folder and inside this folder another folder

0 Kudos
Message 3 of 12
(3,146 Views)

Just use "Create folder". Where are you stuck? Show the code.

Certified LabVIEW Architect
0 Kudos
Message 4 of 12
(3,142 Views)

Hola Felipe,

Yo he hecho lo mismo que tú solo que he puesto .txt en vez de .xls. Yo lo guardo todo en una carpeta pero ahora me gustaría que se creara otra carpeta dentro de esa según la fecha. Como lo podría hacer?

0 Kudos
Message 5 of 12
(3,134 Views)

Hi 99,

 

no need to capture a quite old thread when you already created your own one!

 

I have done the same thing as you only that I have put .txt instead of .xls. I keep everything in one folder but now I would like another folder created within that folder according to the date. How could I do it?

Use the CreateFolder function, as suggested before!

Use FormatIntoString (or FormatDateTimeString) to create your folder name "according to date"…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 12
(3,127 Views)

Hi GerdW, 

I have alreday created a folder, but I want to separate all the files for days, I mean, I want to save the files every day in a different folder

0 Kudos
Message 7 of 12
(3,118 Views)

Then create a folder for each day.

Certified LabVIEW Architect
0 Kudos
Message 8 of 12
(3,114 Views)

Hola Felipe,

Perdona que te moleste. He intentado crearme una carpeta en el Disco Local C mediante este programa que le adjunto a continuación pero no consigo crear la carpeta.

Un saludo

0 Kudos
Message 9 of 12
(3,083 Views)

Hi 99,

 

again you hijacked that old thread instead of sticking with your own one…

 

Sorry to bother you. I tried to create a folder on Local Disk C through this program that I attached below but I can't create the folder.

What's wrong with your VI? Where do you fail?

check.png

Did you check your resulting path?

It's not recommended to have points in file-/foldernames.

Probably you want one more "\" in the path between the first and 2nd date string!?

Why don't you use BuildPath to build a path?

Why don't you use FormatIntoString (or FormatDateTimeString) to format your date correctly?

I recommend a format similar to YYYYMMDD to allow simple sorting of files/folders in an explorer window…

 

As simple like this:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 10 of 12
(3,072 Views)