Results 1 to 2 of 2

Thread: File Names With Spaces

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2002
    Posts
    1

    File Names With Spaces

    Im trying to Update and INI File that has Spaces in its name. But it wont seem to understand anything with spaces in it. What am I doing Wrong. ??? Im new to this so please be kind!

    Example: My File Name.ini


    inifile = "c:\dms\My File Name.ini"
    Call WritePrivateProfileString(lpSectionName, _
    lpKeyName, _
    lpValue, _
    inifile)

    When I try to update this it get nothing!
    Last edited by emerce2000; Jan 16th, 2002 at 11:59 PM.

  2. #2
    Addicted Member Supester's Avatar
    Join Date
    Nov 2001
    Location
    The Netherlands
    Posts
    220
    try adding extra quotes around it

    inifile = chr(34) & "c:\dms\My File Name.ini" & chr(34)

Posting Permissions

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



Click Here to Expand Forum to Full Width