Raga devo trasformare questo codice asp in JScript:
Set fs = CreateObject("Scripting.FileSystemObject");
Path = server.mappath("../percorso.txt");
Set percorso = fs.OpenTextFile(Path);
percorso = percorso.ReadLine;
Raga devo trasformare questo codice asp in JScript:
Set fs = CreateObject("Scripting.FileSystemObject");
Path = server.mappath("../percorso.txt");
Set percorso = fs.OpenTextFile(Path);
percorso = percorso.ReadLine;
che io sappia
l'FSO è solo vbscript
quindi non lo puoi fare in javascript
![]()
Ah, Jedis! I had no ideas! What can i do for you, honored Jedis?
I'm not Jedi. I'm a guy with a lighsaber and a few questions.
ho risolto in questo modo:
var objfile=new ActiveXObject("Scripting.FileSystemObject");
var pathfile=objfile.OpenTextFile(Server.MapPath("../percorso.txt"),1);
var percorso=pathfile.ReadLine();
pathfile.close();
Ciao.