Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Setting command line switches

0 views
Skip to first unread message

Josh Travinski

unread,
Sep 24, 1998, 3:00:00 AM9/24/98
to
I an making shortcuts using VBScript in the WSH. I want to make a short cut
for "C:\Windows\Explorer.exe /n,/e,c:\" without the quotes. I've looked at
the samples and i substitued my command line instead of notepad.exe, but it
doesnt work. can anyone help?

Marcus Kellermann

unread,
Sep 29, 1998, 3:00:00 AM9/29/98
to
The problem is that you are specifying arguments for EXPLORER. WSH thanks
that you are specifying a executable with a space in the path name so it
wants to put it in quotes. To get around this you need to assign the
arguments to the Arguments property

oShortCut.TargetPath = "C:\Windows\Explorer.exe "
oShortCut.Arguments = "/n /e /c:\"
oshortCut.save

-Marcus Kellermann

Josh Travinski wrote in message ...

0 new messages