News:

  • August 23, 2026, 11:39:19 AM

Login with username, password and session length

Author Topic: Creating Folders on SD card  (Read 7039 times)

PLCwannabe

  • Hero Member
  • *****
  • Posts: 208
Creating Folders on SD card
« 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.

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3626
  • Darth Ladder
Re: Creating Folders on SD card
« Reply #1 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.
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

PLCwannabe

  • Hero Member
  • *****
  • Posts: 208
Re: Creating Folders on SD card
« Reply #2 on: March 10, 2020, 09:54:56 AM »
Got it working now. Thanks a lot.

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3626
  • Darth Ladder
Re: Creating Folders on SD card
« Reply #3 on: March 10, 2020, 10:24:50 AM »
Good deal!
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.