Announcement

Collapse
No announcement yet.

Get part of Data from ini file

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Get part of Data from ini file

    Hello Every one.

    how can i get part of data from ini file ?

    orginal data.ini file :

    Code:
    [myfile]
    file=../test.rar
    like this :

    Code:
    [newfile]
    file=test.rar

    is there any way ?

  • #2
    Originally posted by JSTX2013 View Post
    Hello Every one.

    how can i get part of data from ini file ?

    orginal data.ini file :

    Code:
    [myfile]
    file=../test.rar
    like this :

    Code:
    [newfile]
    file=test.rar

    is there any way ?
    String.SplitPath and RTFM.
    We are slowly invading your planet to teach lazy humans to read the user manual.
    But don't be scared: we are here to help.

    Comment


    • #3
      thank you for reply.

      i use this script but i have problem :
      this script not split right file name !

      Debug.ShowWindow(true);
      path_parts = String.SplitPath("..\myfile.exe");
      Debug.Print(path_parts.Filename.."\r\n");


      Response : ..myfile

      Comment


      • #4
        When testing it my end I only

        Code:
        Slitter = String.SplitPath("..\\this\\is\\a\\string.exe");
        Dialog.Message('', 'Drive: '..Slitter.Drive..'\r\nFolder: '..Slitter.Folder..'\r\nFile: '..Slitter.Filename..'\r\nEx: '..Slitter.Extension, MB_OK, MB_ICONNONE);
        Slitter = String.SplitPath("..\\string.exe");
        Dialog.Message('', 'Drive: '..Slitter.Drive..'\r\nFolder: '..Slitter.Folder..'\r\nFile: '..Slitter.Filename..'\r\nEx: '..Slitter.Extension, MB_OK, MB_ICONNONE);
        Last Dialog returns

        ---------------------------

        ---------------------------
        Drive:

        Folder: ..\

        File: string

        Ex: .exe
        ---------------------------
        OK
        ---------------------------
        so I have no idea what your doing to return the .. also
        Plugins or Sources MokoX
        BunnyHop 2021 Here

        Comment

        Working...
        X