SRL Archive - OSR Help

Making a Folder


Sk1nyNerd

2013-10-26 23:07:08

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

thanks

riwu

2013-10-26 23:38:00

CreateDirectory(ScriptPath + 'my folder');

Sk1nyNerd

2013-10-26 23:53:48

From: riwu
CreateDirectory(ScriptPath + 'my folder');


awesome, thanks mate. wont let me rep u ha

Sk1nyNerd

2013-10-27 01:36:29

From: riwu
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';

riwu

2013-10-27 02:13:19

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

Sk1nyNerd

2013-10-27 23:40:34

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

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

thsnks

riwu

2013-10-28 06:37:06

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

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

thsnks

Remove the '.'.
Just 'ini'

Sk1nyNerd

2013-10-28 14:30:12

From: riwu
Remove the '.'.
Just 'ini'


thanks for the help man