Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[VBS] getting the result of a command?

Featured Replies

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, from

VLOB_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!

Please sign in to comment

You will be able to leave a comment after signing in

Sign In Now

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.