Official Core: 096.7
Official Core: 097 2008-02-26
POL Home
FAQ
Search
Memberlist
Usergroups
Register
Profile
Log in to check your private messages
Log in
Acces Denied to readfile
PenUltima Online Forum Index
->
General Help 096
Display posts from previous
Display posts from previous:
All Posts
1 Day
7 Days
2 Weeks
1 Month
3 Months
6 Months
1 Year
Oldest First
Newest First
Acces Denied to readfile
Author
Message
Snuff
Joined: 29 Feb 2008
Posts: 2
Posted: Fri Feb 29, 2008 11:52 am
Post subject: Acces Denied to readfile
I've do a little script, in a package, to test the I/O function's on file ".txt"
Code:
use file;
use cfgfile;
use uo;
program textcmd_scrivifile ( who, filename )
var esito := readfile(filename);
SendSysMessage( who, "esito path: " + esito );
endprogram
Into var ESITO will must be the return of the readfile().
As input paramenter i send this string:
:pkgtest:lettura.txt
In lettura.txt there's the string "Prova di lettura"
In all case the return of function is "ACCESS DENIED"
I've tried to check windows privs on R/W (but it's all ok)
I've tried to reinstall all but nothing.
The same script with the same folders and package run correctly in a computer's friend.
The POL version is 096.7 Vestal Virgin. and OS version Windows XP PRO
What's the problem?
thx to all
Author
Message
Pierce
Joined: 02 Feb 2006
Posts: 256
Posted: Fri Feb 29, 2008 3:20 pm
Post subject:
You need a fileaccess.cfg inside your config folder which contains the following (just an example):
Code:
FileAccess
{
Package *
Directory *
AllowRead 1
AllowWrite 1
AllowAppend 1
AllowRemote 0
Extension .txt
}
Author
Message
Snuff
Joined: 29 Feb 2008
Posts: 2
Posted: Fri Feb 29, 2008 3:58 pm
Post subject:
Problem solved.
Thx for solution
PenUltima Online Forum Index
->
General Help 096
All times are GMT - 4 Hours
Page
1
of
1
Powered by
phpBB
© 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty