Recent

Author Topic: [SOLVED] Creating file at not existing folder  (Read 394 times)

egsuh

  • Hero Member
  • *****
  • Posts: 1696
[SOLVED] Creating file at not existing folder
« on: October 15, 2025, 08:55:17 am »
If I'd like to create a file on a folder which does not exist, what steps should I follow?
Not using dialogs.
« Last Edit: October 15, 2025, 09:41:09 am by egsuh »

CM630

  • Hero Member
  • *****
  • Posts: 1527
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: Creating file at not existing folder
« Reply #1 on: October 15, 2025, 09:02:20 am »
What is wrong with
Code: Pascal  [Select][+][-]
  1.   IF NOT
  2.            DirectoryExists('C:\...\MyFolder')
  3.        THEN
  4.            CreateDir('C:\...\MyFolder');
?
Лазар 4,2 32 bit (sometimes 64 bit); FPC3,2,2

creaothceann

  • Full Member
  • ***
  • Posts: 207
Re: Creating file at not existing folder
« Reply #2 on: October 15, 2025, 09:03:29 am »
« Last Edit: October 15, 2025, 09:05:14 am by creaothceann »
Quote from: Thaddy
And don't start an argument, I am right.
Quote from: Thaddy
You have a thorough misunderstanding of what I wrote. Can you provide an example this time? I doubt it. (because you never do out of incompentence)

egsuh

  • Hero Member
  • *****
  • Posts: 1696
Re: Creating file at not existing folder
« Reply #3 on: October 15, 2025, 09:40:51 am »
Thanks a lot, for your kind comments.

 

TinyPortal © 2005-2018