VBS Problem mit wshshell.run
hi,
ich kann mit wshshell.run eine Datei nicht ausführen. Er sagt er kann die angegebene datei nicht finden.
Der Pfad zu der Steht in ner variablen. Wenn ich voorher mit fso.fileexists abfrage ebekomme ich true.
wsh unter winxp embedded
habe in der letzten Zeile SDUZPB auch schon so versucht:
" sDUZPB"
""sDUZPB""
"""sDUZPB"""
(sDUZPB)
..alles nix.
An was kann das liegen ?!
Danke"
SC
ich kann mit wshshell.run eine Datei nicht ausführen. Er sagt er kann die angegebene datei nicht finden.
Der Pfad zu der Steht in ner variablen. Wenn ich voorher mit fso.fileexists abfrage ebekomme ich true.
wsh unter winxp embedded
sDUZPB = "C:\Documents and Settings\" & onet.username & "\Start Menu\Programs\Startup\DynamicUSB.exe"
msgbox fso.fileexists(sDUZPB)
wshshell.run sDUZPB
habe in der letzten Zeile SDUZPB auch schon so versucht:
" sDUZPB"
""sDUZPB""
"""sDUZPB"""
(sDUZPB)
..alles nix.
An was kann das liegen ?!
Danke"
SC
Please also mark the comments that contributed to the solution of the article
Content-Key: 175726
Url: https://administrator.de/contentid/175726
Printed on: April 24, 2024 at 03:04 o'clock
3 Comments
Latest comment
Aloha,
nun ...
... versuche doch einmal
greetz André
nun ...
"C:\Documents and Settings\" & onet.username & "\Start Menu\Programs\Startup\DynamicUSB.exe"
= gesamter Pfad mit Leerzeichen ohne Zollstöcke drumherum ...... versuche doch einmal
Chr(34) & "C:\Documents and Settings\" & onet.username & "\Start Menu\Programs\Startup\DynamicUSB.exe" & Chr(34)
greetz André