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.

Ausgabeart

Empfohlene Antworten

Halli Hallo!!

Ich habe ien Problem, ich habe folgendes script geschrieben:

Const DriveTypeCDROM = 4

Set oFS = Wscript.CreateObject("Scripting.FileSystemObject")

Set oDrives = oFS.Drives 'Loop thru A-Z. If found, exit early.

For Each Drive in oDrives

If Drive.DriveType = DriveTypeCDROM Then

Wscript.Echo Drive.DriveLetter

End If

Next

Jetzt will ich aber die Nachricht nicht in nem neuen Fenster angezeigt bekommen (messagebox) sondern in einem cmd direkt.

Wie kann ich das machen?

Liebe grüße Tine!!

dann gibt er mir aber einen Fehler aus :(

also bei mir geht es

folgender Code:

Const DriveTypeCDROM = 4

Set oFS = Wscript.CreateObject("Scripting.FileSystemObject")

Set oDrives = oFS.Drives 'Loop thru A-Z. If found, exit early.

For Each Drive in oDrives

If Drive.DriveType = DriveTypeCDROM Then

Wscript.Echo Drive.DriveLetter

End If

Next

in der datei test.vbs

in der console in das verzeichnis wechseln wo test.vbs ist und dann folgendes eingeben:

cscript test.vbs

dann sollte folgende ausgabe kommen:

Microsoft ® Windows Script Host, Version 5.6

Copyright © Microsoft Corporation 1996-2001. Alle Rechte vorbehalten.

E

wenn dein fehler immer noch kommt -> posten

vielen vielen Dank :-)

Mein Retter :-)

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

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.