Subj : getcwd() ideas? toDo?
To : DOVE-Net.Sync_JavaScript
From : Ragnarok
Date : Sun Feb 10 2008 05:36 am
Hi
i think that still is not possible to get the directory of the current
running script.
i want to get it to use a relative paths to the script
something such JS_SCRIPT_NAME?
in the global object?
also some ideas:
using file class:
var f = new File("/etc/apache2/httpd.conf");
write (f.get_dir());
using globals:
write (file_getdir('/etc/apache2/httpd.conf'))
will show '/etc/apache2'
Saludos!
--
Dock Sud BBS
http://bbs.docksud.com.ar
telnet://bbs.docksud.com.ar
---
� Synchronet � Dock Sud BBS TLD 24 HS -
http://www.docksud.com.ar - telnet://bbs.docksud.com.ar