Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

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: Problem mit Anzeige auf einen Blick // Speichern in Datei

Empfohlene Antworten

Veröffentlicht

Hallo zusammen,

1) Ich bastle mit VBS einen Skript der per WMI bestimmte Hardware Infos aus dem PC saugt.

Nun habe ich die Ausgabe aber nicht so hinbekommen, das es beide Infos in einem Fenster zeigt. Ich bekomme die Infos geteilt, möchte diese jedoch untereinander in einem Fenster haben.

Bsp.:

Set wbemObjectSet = wbemServices.InstancesOf("Win32_VideoController")

For each Wbemobject in WbemObjectSet

Wscript.Echo "Auflösung: " &WbemObject.VideoModeDescription

Wscript.Echo "Graka: " &WbemObject.Description

2) Diese Informationen die das Script ausspuckt, sollte es auch gleich lokal in eine Datei schreiben. Hat jemand Infos wie ich das am geschicktesten anstelle ? (Tutorials würden auch schon reichen)

Da ich mich in VBS nicht so 100%ig auskenne bitte HILFE :)

Danke

Hallo,

zu 1.

Wscript.Echo "Auflösung: " &WbemObject.VideoModeDescription & vbnewline & _

"Graka: " &WbemObject.Description

oder

msgbox "Auflösung: " &WbemObject.VideoModeDescription & vbnewline & _

"Graka: " &WbemObject.Description

zu 2.

musst/kannst du mit dem FileSystemObject machen...

set objFSo = WScript.CreateObject("Scripting.FileSystemObject")

dim objFile

set objFile = objFSO.CreateTextFile("c:\ausgabe.txt",true)

with objFile

.WriteLine "test"

.WriteLine "------------------------"

.WriteLine "Auflösung: " &WbemObject.VideoModeDescription

.WriteLine "Graka: " &WbemObject.Description

end with

objFile.Close

set objFile = nothing

set objFSO = nothing

Hoffe hilft dir weiter...

ciao

Hab ich vergessen:

http://msdn.microsoft.com/library/default.asp?url=/nhp/default.asp?contentid=28001169

WoW!!!

So viel Hilfe...krass! Danke dir!!!!!!!!!! :hodata

Das hilft mir sehr weiter !!!!!!!!!!

THX !!!!

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

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.