Re: Re: [Python] Vbs vs Python

2006-09-17 Per discussione Sub-Zero
#prova.vbs## main() sub main() set fso = CreateObject("Scripting.FileSystemObject") Set file = fso.OpenTextFile(WScript.ScriptFullname,1)'Qui vado ad aprire prova.vbs (ovvero questo stesso file) copy = file.ReadAll() 'mentre quì ne leggo il contenuto Set nfile = f

Re: [Python] Vbs vs Python

2006-09-17 Per discussione Luca Marturana
Te la butto lì: #!/usr/bin/python f = file("/path/to/file") f2 = file("/path/to/file2","w") tmp = f.read() f2.write(tmp) f.close() f2.close() -- Luca Marturana (Luca89) <[EMAIL PROTECTED]> Website: http://luca89.wordpress.com Jabber: <[EMAIL PROTECTED]> MSN: <[EMAIL PROTECTED]> signature.asc D

Re: [Python] Vbs vs Python

2006-09-17 Per discussione Lawrence Oluyede
Questo è ancora più semplice: --- import shutil shutil.copy("prova.py", "prova2.py") --- -- Lawrence http://www.oluyede.org/blog ___ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python

Re: [Python] Vbs vs Python

2006-09-17 Per discussione Lawrence Oluyede
#prova.vbs## main() sub main() set fso = CreateObject("Scripting.FileSystemObject") Set file = fso.OpenTextFile(WScript.ScriptFullname,1)'Qui vado ad aprire prova.vbs (ovvero questo stesso file) copy = file.ReadAll() 'mentre quì ne leggo il contenuto Set nfile = f

[Python] Vbs vs Python

2006-09-17 Per discussione Sub-Zero
Salve a tutti, scusate se disturbo ancora, ma non so come fare (o se è possibile) a leggere il contenuto del file che sto usando, forse se qualcuno è pratico di _vbscript_ questo esempio parlerà più chiaramente di come faccio in italiano:   #prova.vbs##   main()sub main()set fso = Cr