K
kalusalu
Hello..I was browsing thru the newsgroups ...and was wondering if anyone
here can be of assistance to me....as I am very very new to PERL..and have
this ASP SCRIPT..I have to convert...
<%
'Response.Content.Type = "text/plain"
vpath = Request("vpath")
IF vpath = "" then
vpath = "/"
END IF
realPath = server.mappath(vpath)
Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.GetFolder(realPath)
response.write f.Size & vbcrlf
response.write.realPath & vbcrlf
response.write vpath & vbcrlf
%>
it outputs the following:
34342323423 D:\www-roots\www.example.com.80/wwwroot/
the diskusage the real path the virtual path
I have written this..
# $d = det_dir_name();
$size = 0;
DIR = opendir $d
While (readdir DIR) {
next if /^\.\.?$/ ;
next if -d$_;
$size == -s $_;
}
print $size
print $d
cannot find a function for this det dir name...any ideas..and how I convert
this ASP SCRIPT ????
here can be of assistance to me....as I am very very new to PERL..and have
this ASP SCRIPT..I have to convert...
<%
'Response.Content.Type = "text/plain"
vpath = Request("vpath")
IF vpath = "" then
vpath = "/"
END IF
realPath = server.mappath(vpath)
Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.GetFolder(realPath)
response.write f.Size & vbcrlf
response.write.realPath & vbcrlf
response.write vpath & vbcrlf
%>
it outputs the following:
34342323423 D:\www-roots\www.example.com.80/wwwroot/
the diskusage the real path the virtual path
I have written this..
# $d = det_dir_name();
$size = 0;
DIR = opendir $d
While (readdir DIR) {
next if /^\.\.?$/ ;
next if -d$_;
$size == -s $_;
}
print $size
print $d
cannot find a function for this det dir name...any ideas..and how I convert
this ASP SCRIPT ????