From: C y b e r T e c h @ L i s t s . E x M a c h i n a . n e t
<http://www.cybercafe21.net> & <http://www.cybercafe21.tv>
Pq pas en vbs?
dim text_to_write(2)
input = "mon_fichier.html"
text_to_write(0) = "<html>" & vbcrlf
text_to_write(1) = "<body>" & vbcrlf
text_to_write(2) = "<h1>Ceci Est ma mage html</h1>" & vbcrlf
...
Dim fso, tf
Set fso = CreateObject("Scripting.FileSystemObject")
Set tf = fso.CreateTextFile(input, True)
for www = 0 to ubound(text_to_write)
tf.Write (text_to_write(www))
next
tf.Close
Dan
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> Sent: mercredi 5 septembre 2001 16:58
> To: [EMAIL PROTECTED]
> Subject: [CCTK] Generer une page html a partir d'un script NT ?
>
>
> From: C y b e r T e c h @ L i s t s . E x M a c h i n a . n e t
> <http://www.cybercafe21.net> & <http://www.cybercafe21.tv>
>
> Salut � tous,
>
> Je coince sur un probl�me en ce moment.
> J'aimerais bien g�n�rer une page HTML � partir d'un simple
> BAT NT. En
> fait, je pars d'une page que je viens de faire, celle-ci sera
> compl�t�e de
> divers infos r�cup�r�es via le script, puis le script feras
> des "echo" de
> toutes les lignes de la futures page html + les infos
> r�cup�r�es le tout
> redirig� vers le fichier html ainsi g�n�r�. Donc j'utilise ">>" pour
> rajouter des lignes dans le fichier que je g�n�re, etc ...
>
> Pour ceux qui n'ont pas compris, ben c'est simple, si je fais ceci :
> echo Coucou > c:\test.txt
> echo Je suis sur >> c:\test.txt
> echo CCTK >> c:\test.txt
>
> j'obtiendrai un fichier c:\test.txt contenant ces 3 lignes,
> et je peux
> biensur via la meme facon rediriger vers test.html, etc ...
> ce qu'on veut
> donc
>
> Le hic, le voici ! Essayez de faire un
> echo <html> > c:\test.html et on commence � rire jaune
>
> Si on a le malheur de mettre entre double quotes ("), cette superbe
> commande echo t'affiche aussi les doubles quotes ... j'ai
> essay� de jouer de
> toutes les mani�res possibles aussi avec le slash,
> anti-slash, simple quote,
> ... rien � faire !
>
> Bref, qqun aurait une id�e ? Existe-t-il une commande
> "echo" un peu plus
> �labor�e qui tient compte des caract�res sp�ciaux ... ?
>
> Si vous avez une solution, merci de la partager
>
> a+
> Alex
>
>
>
> Visit us at http://www.clearstream.com
>
> IMPORTANT MESSAGE
>
> Internet communications are not secure and therefore
> Clearstream International does not
> accept legal responsibility for the contents of this message.
>
> The information contained in this e-mail is confidential and
> may be legally privileged. It is
> intended solely for the addressee. If you are not the
> intended recipient, any disclosure,
> copying, distribution or any action taken or omitted to be
> taken in reliance on it, is
> prohibited and may be unlawful. Any views expressed in this
> e-mail are those of the
> individual sender, except where the sender specifically
> states them to be the views of
> Clearstream International or of any of its affiliates or subsidiaries.
>
> END OF DISCLAIMER
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> CCTK vous est offert par Emakina <http://www.emakina.com>
> Pour vous desabonner <mailto:[EMAIL PROTECTED]>
>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
CCTK vous est offert par Emakina <http://www.emakina.com>
Pour vous desabonner <mailto:[EMAIL PROTECTED]>