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.

RunAs in einer batch

Empfohlene Antworten

Hi

Irgendwie hänge ich an einem leichten Problem fest.

Ich habe eine Batch mit einem RunAs-Befehl

RunAs /user:xxxDom\yyyuser "mmc.exe c:\my\my.msc". Das ist kein Problem und funktioniert.

Aber sobald im Argument ein leerzeichen ist, bekomme ich es einfach nicht hin.

RunAs /user:xxxDom\yyyuser "mmc.exe c:\my consoles\my.msc".

HAbe schon viele varianten der Hochkommas ausprobiert.

Hi Nobody.

Ich hatte mal ein ähnliches Problem mit AdminStart.vbs (runas)

Hab die Befehlszeile dann hart ins Script codiert und mit char(34) die anführungszeichen erzeugt.

Danach lief alles ohne Probleme.

Ist zwar jetzt nicht genau die Lösung für dein Problem, aber vielleicht eine Hilfe in welcher

Richtung es du noch versuchen könntest.

Das ist auch ein Output aus einem VB-Programm.

(ebenfalls mit chr(34))

Nur ist der allg. Syntax RunAs account Programm

Wenn kein Leerzeichen dabei ist, ist es einfach.

Dann ist Programm "programm.exe c:\entsprechende_Datei"

Mit Leerzeichen müsste es erstmal

"programm.exe "c:\leer zeichen\entsprechende_Datei"" sein. Aber Doppelhochkomma geht nunmal nicht.

strscript = "%systemdrive%\temp\programm.exe "&chr(34)&"c:\leer zeichen\blablub.txt"&chr(34)

und dann Adminstart.vbs /S /CP

so hab ich mir die doppelten anführungsstriche gespart.

Vielleicht hilfts dir ja bei deinem problem.

Danke, werd ich mal testen. Wenn nicht Trick 18.

Temporärer Laufwerksmap auf den Programmpfad, dann hätte

ich "y:\xxx.exe z:\test.msc".

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.