Host Engineering Forum

General Category => Do-more CPUs and Do-more Designer Software => Topic started by: PLCwannabe on March 10, 2020, 12:46:09 AM

Title: Creating Folders on SD card
Post by: PLCwannabe on March 10, 2020, 12:46:09 AM
 Is it possible to create a folder within a folder on an SD card (with plc) and have the new folders name be a string? Attached is a snip of the code I'm using, but it's not working like I want it to. It just names the new folder "SS202" instead of the name stored in SS202.
Title: Re: Creating Folders on SD card
Post by: Controls Guy on March 10, 2020, 01:22:33 AM
In the folder name, the SS202 is inside the quotes, so it's taken literally.  You need to build the folder name, put it in a string variable, and reference that variable in the box, without quotes.
Title: Re: Creating Folders on SD card
Post by: PLCwannabe on March 10, 2020, 09:54:56 AM
Got it working now. Thanks a lot.
Title: Re: Creating Folders on SD card
Post by: Controls Guy on March 10, 2020, 10:24:50 AM
Good deal!