EvilGuinness Posted May 18, 2004 Posted May 18, 2004 Hello,First, I'm not using VBS for web development....si I think it's the good forum I'm trying to use a software that gives the MAC adress in VBScript, and to write the result of this command in a file. Here is my line : set VLOB_WSHSH = WScript.CreateObject("WScript.shell")retour = VLOB_WSHSH.Run("d:\compname.exe /d ?m 1>>d:\adresse.txt 2>>d:\erreurs.log",1,True)But the file is never created...it's supposed to contain the MAC adress. I tried lots of things, fromVLOB_WSHSH.Run("d:\compname.exe /d ?m >> d:\adresse.txt")to lines like the first I show...I can write/read on the drive, I tried to create the file before writing in it but it's useless.If someone can help me....thanks!
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now