Results 1 to 4 of 4

Thread: Error for Make Directory

  1. #1
    Junior Member
    Join Date
    Feb 2009
    Posts
    7
    Rep Power
    16

    Error for Make Directory

    I have been trying to develop a very simple program to make some folders and copy files into them. I am getting the error:

    Variable not defined or misspelled Keyword
    for this line:

    DIR_Make(C:\WINDOWS\system_setting)
    
    I have included

    USES "FILE"
    
    before it.
    Does anyone know whats wrong with my code?

  2. #2
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,817
    Rep Power
    10

    Re: Error for Make Directory

    Hi nrodes and welcome to thinBasic community forum.

    You was almost right but you need to pass a string expression to DIR_Make
    So change your code to something like:

    [code=thinbasic]
    uses "file"
    dir_make("C:\WINDOWS\system_setting")
    [/code]

    Or something like:
    [code=thinbasic]uses "file"
    dim MyNewPath as string
    MyNewPath = "C:\WINDOWS\system_setting"
    dir_make(MyNewPath)[/code]

    Ciao
    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  3. #3
    Junior Member
    Join Date
    Feb 2009
    Posts
    7
    Rep Power
    16

    Re: Error for Make Directory

    Thank You. My code works fine now

  4. #4
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,817
    Rep Power
    10

    Re: Error for Make Directory

    Perfect.
    Ciao
    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

Similar Threads

  1. Module directory
    By ErosOlmi in forum TBGL General
    Replies: 2
    Last Post: 21-09-2005, 12:22

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •