Results 1 to 8 of 8

Thread: Making a Folder

  1. #1
    Join Date
    Feb 2013
    Location
    Narnia
    Posts
    615
    Mentioned
    8 Post(s)
    Quoted
    252 Post(s)

    Default Making a Folder

    How do you make and name your own folder in a location when a script is ran?

    thanks

    View my OSR Script Repository!


    Botted to max
    Guides: How to Report Bugs to the Scripter
    ~~~~ Moved to Java. Currently Lurking ~~~~

  2. #2
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    CreateDirectory(ScriptPath + 'my folder');

  3. #3
    Join Date
    Feb 2013
    Location
    Narnia
    Posts
    615
    Mentioned
    8 Post(s)
    Quoted
    252 Post(s)

    Default

    Quote Originally Posted by riwu View Post
    CreateDirectory(ScriptPath + 'my folder');
    awesome, thanks mate. wont let me rep u ha

    View my OSR Script Repository!


    Botted to max
    Guides: How to Report Bugs to the Scripter
    ~~~~ Moved to Java. Currently Lurking ~~~~

  4. #4
    Join Date
    Feb 2013
    Location
    Narnia
    Posts
    615
    Mentioned
    8 Post(s)
    Quoted
    252 Post(s)

    Default

    Quote Originally Posted by riwu View Post
    CreateDirectory(ScriptPath + 'my folder');
    i thought it would be straight forward, but how do i save files to the folder now? ha

    PlayerSettingsFile := AppPath + OpenDirectory('my folder') + PlayerFormName + '.ini';

    View my OSR Script Repository!


    Botted to max
    Guides: How to Report Bugs to the Scripter
    ~~~~ Moved to Java. Currently Lurking ~~~~

  5. #5
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    What's your OpenDirectory?
    CreateFile(ScriptPath + 'my folder\' + PlayerFormName + '.ini');

  6. #6
    Join Date
    Feb 2013
    Location
    Narnia
    Posts
    615
    Mentioned
    8 Post(s)
    Quoted
    252 Post(s)

    Default

    how can i return all the files in that folder? when i try this my debug box just says []

    Simba Code:
    PlayerSettingsFile := AppPath + 'ibot11s PS File\';
    writeln(GetFiles(PlayerSettingsFile, '.ini'));

    thsnks

    View my OSR Script Repository!


    Botted to max
    Guides: How to Report Bugs to the Scripter
    ~~~~ Moved to Java. Currently Lurking ~~~~

  7. #7
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    Quote Originally Posted by ibot_dung11 View Post
    how can i return all the files in that folder? when i try this my debug box just says []

    Simba Code:
    PlayerSettingsFile := AppPath + 'ibot11s PS File\';
    writeln(GetFiles(PlayerSettingsFile, '.ini'));

    thsnks
    Remove the '.'.
    Just 'ini'

  8. #8
    Join Date
    Feb 2013
    Location
    Narnia
    Posts
    615
    Mentioned
    8 Post(s)
    Quoted
    252 Post(s)

    Default

    Quote Originally Posted by riwu View Post
    Remove the '.'.
    Just 'ini'
    thanks for the help man

    View my OSR Script Repository!


    Botted to max
    Guides: How to Report Bugs to the Scripter
    ~~~~ Moved to Java. Currently Lurking ~~~~

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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