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.

Script

Empfohlene Antworten

Veröffentlicht

simples Script zur zyklischen ausgabe des freien Festplattenspeichers.

Da ich von Scripts keine ahnung habe frag ich euch:

Const Divisor = 1048576

Const Stoptime = 10000

Computer = "HW_546"

Set objWMIService = GetObject("winmgmts://" & Computer)

For i = 1 to 3

Set objLogicalDisk = objWMIService.InstancesOf("Win32_LogicalDisk.DeviceID='c:'")

FreeMegaBytes = objLogicalDisk.FreeSpace / Divisor

Wscript.Echo Int(FreeMegaBytes)

Next

Wscript.Sleep Stoptime

Next

Was ist falsch?!und er soll wirklich nur von C: das ausgeben!

THX

sorry! also windows(vbs) script...

habs noch ma bisschen geändert läuft aba trotzdem nich!

Const Divisor = 1048576

Const Stoptime = 10000

Computer = "HW_546"

Set objWMIService = GetObject("winmgmts://" & Computer)

Set objLogicalDisk = objWMIService.Get("Win32_LogicalDisk.DeviceID='c:'")

For i = 1 to 3

FreeMegaBytes = objLogicalDisk.FreeSpace / Divisor

Wscript.Echo FreeMegaBytes

Next

Wscript.Sleep Stoptime

Next

Er meckert das letzte Next an... wenn ich es rausnehme, bringt er mir zwar drei mal die Info aber nicht im zyklischen abstand!

ok hat sich grad erledigt.. bisschen blind heut vor augen!

man sollte die schleife nich schon zu machen bevor man sagt das die schleife für eine gewise zeit anhalten soll :)

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.