
Very basic question: How to store " in strings?
Amit,
Since you mention creation of shortcuts, I add to what Ray
and Bob have already pointed out to say that you also need
to understand that the Target property is just that: the
pathspec to the target executable ONLY. Do not try to put
arguments (command switches, filenames, etc.) into the
Target. Instead, place these into the Arguments property
provided for that use.
Hope this saves you from a few moments (hours?!) of
confusion and frustration. It surely slowed me down a
while when I was getting started.
Tom Lavedas
===========
Quote:
>-----Original Message-----
>Hi,
>I'm trying to write a windows script using VBS to create
50 shortcuts. This
>is the first time I'm doing any VBS and I'm stumped by so
many of its
>idiosyncrasies. All I want to do is store a " inside a
string for the
>shortcut paths. For example, I want to store this string
in a variable:
>"C:\Msaccess.exe" /WKGRP "C:\ABC.MDB"
>I tried escaping the quotes using backslash, like in
other languages, but
Quote:
>that does not seem to work in VBS. Please help!
>amit
>.