Author Topic: create/delete directories  (Read 624 times)

0 Members and 1 Guest are viewing this topic.

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
create/delete directories
« on: May 03, 2009, 07:30:16 pm »
shell_exec cannot create directories with titles longer than 8 characters, and does it in all caps
I was wondering if anybody thought of any work-arounds so there can be no human-input to do this.

The best that Shoozza+i came up w/ was having the script generate a .bat file; and then have a separate application either be told to run it or do its thing, or have it scan the directory periodically to see if the file exists and run it.. but this would not work on servers most servers sense you'd need a separate application on the same server to do that... (or do some weird thing w/ relating to contacting the server w/ ftp or something)

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: create/delete directories
« Reply #1 on: May 03, 2009, 08:06:38 pm »
Solution Solved:
shell_exec('cmd /c mkdir 12345678_long_name');
creates the folder "12345678_long_name" not "12345678" as it would have been without the "cmd /c" part!
Many thanks to Shoozza for the solution!