RDV+DIAL chat illimit� dans ta r�g!
no save
Assistance
Achat
News

Forum | programmation
VBS:Récuper le chemin du script
Gamarah, le lun. 15 juin 2009 à 18:03:59
Bonjour,
J'ai créé un script qui dois enregistrez dans un fichier texte le contenu d'une variable (Id), je voudrais enregistrer le fichier texte dans le chemin d'accès du script :

[...]
Const ForReading = 1, ForWriting = 2
Set WshShell = WScript.CreateObject("WScript.Shell")
Dim fso, f
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.OpenTextFile("***\Identifiant.txt", ForWriting,true)
f.write(Id)
[...]

Je voudrais savoir si il y a un moyen pour à la place des *** mettre le chemin d'accès du script en exécution...

MerciConfiguration: Windows Vista
Firefox 3.0.11


Z3n1th
24 juin
Suivant
REPONSES
Z3n1th
24 juin
Gamarah
27 juin
Z3n1th
29 juin
Version Web
Réalisé par RedShift
no save