Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBS ExpandEnviornmentString problem...

Status
Not open for further replies.

cdavidsn

Programmer
Jul 19, 2002
4
US
Ok... I am having a problem using the ExpandEnvironmentStrings. I have an Access Database that I need installed Via VBS. The database has a workgroup that I need placed in the target of the shortcut. When I place the "/wrkgrp" string in the code and run the script, VBS script for some reason or other changes the "/" to a "\". When I try to run the db, the database does not open and tells me that I have a problem with the shortcut... It looks to me that the script does not like to put the "/" in the target section of the shortcut. I hope I am not too confusing of what is going on and what I need. Any ideas anyone??? Anyone else have this problem?

The reason I am using a script to place the icon on the desktop rather then using a batch file is Windows 2000 is a little weird when trying to place icons on the desktop in code.

I will be thankful for any help. This problem has me pulling my hair out and cursing out MS...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top