lo script che ho scritto sotto (che non è da leggere, l'ho messo solo per chiarezza) sembra dare problemi girando su Linux, mentre su Windows funziona correttamente. La domanda è generale: ci possono essere problemi di compatibilità dei vbscript su linux?
<script language=vbscript>
Dim wrd
Set wrd = nothing
Function apri(field)
On error resume next
if (not(wrd is nothing)) then
wrd.Quit
set wrd = nothing
end if
Set wrd = CreateObject("Word.Application")
Rem wrd.DefaultWebOptions.OptimizeForBrowser = True
wrd.DefaultSaveFormat = "HTML"
wrd.Visible = True
myFile = Form1.txtTarget.value & "\" & Form1.descLingua.value & "\" & field
Set myTextFile = myFileSystemObject.CreateTextFile(myFile, False)
myTextFile.Close
Wscript.DisconnectObject myTextFile
Set myTextFile = Nothing
Wscript.DisconnectObject myFileSystemObject
Set myFileSystemObject = Nothing
Set myDoc = wrd.Documents.Open(myFile)
if (myDoc is nothing) then
Set myDoc = wrd.Documents.Add
myDoc.SaveAs myFile
end if
End Function
</script>