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.

batch variablen an vbscript übergeben?!

Empfohlene Antworten

Veröffentlicht

hi 'zammen!

ich bräuchte mal hilfe bei nem problemchen hier. Ich hab in ner batchfile mit einer for schleife usernamen aus einer txt file ausgelesen. diese usernamen möchte ich jetzt in einem vbscript weiterverarbeiten. wie kann ich die übergeben? also mit %1 wies im batch is für den ersten wert isses ja im vb net

WScript myscript.vbs command1 command2

VBScript Code:

WScript.arguments.item(0) --> Gibt command1 zurück

WScript.arguments.item(1) --> Gibt command2 zurück

WScript.arguments.length --> Anzahl der Argumente

Also, viel Spass beim testen.

Grüße

Vader

*nicht versteh* bin noch anfänger beim scripten, also meine vbs datei sieht im moment so aus:

dialin.vsb:

set usr= GetObject ("WinNT://domain/scripttrial1")

usr.dialinprivilege = true

usr.SetInfo

meine runit.bat so:

for /f "eol=; tokens=1" %%i in (bla.txt) do cscript c:\temp\script\dialin.vbs %%i

in der bla.txt steht:

domain\scripttrial1

domain\scripttrial2

domain\scripttrial3

wo kommt jetzt was hin ?! :confused:

Dialin.vbs so anpassen.

Viele Grüße

Vader

______________________________________________

dialin.vsb:

dim param

param = WScript.arguments.item(0)

param = replace(param,"\", "/")

set usr= GetObject ("WinNT://" & param)

usr.dialinprivilege = true

usr.SetInfo

meine runit.bat so:

for /f "eol=; tokens=1" %%i in (bla.txt) do cscript c:\temp\script\dialin.vbs %%i

in der bla.txt steht:

domain\scripttrial1

domain\scripttrial2

domain\scripttrial3

danköööö klappt wunderbar :D

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.