Indigo Rose Software
  #1  
Old 09-17-2008
keki keki is offline
Indigo Rose Customer
 
Join Date: Jan 2007
Posts: 2
ShortCut slash problem

Hi
I have a problem about shortcut.
I wolud like to make a shourtcut target:
"C:\CAD\MEP 2009\acad.exe" /ld "C:\CAD\MEP 2009\AecBase.dbx" /p "AutoCAD Architecture (US Metric)"

But When I make a string, it is OK, but when Shortcut done, the target line will be:
"C:\CAD\MEP 2009\acad.exe" \ld "C:\CAD\MEP 2009\AecBase.dbx" \p "AutoCAD Architecture (US Metric)"

My question is:
How can I make "\p" or other command switch, if I use Shell.CreateShortcut built in function?


This is my code:

-- Make a target comman line
ShorCutString = "\""..DLLdir;
ShorCutString = ShorCutString.."\\acad.exe\"";
ShorCutString = ShorCutString.." /ld ";
ShorCutString = ShorCutString.."\""..DLLdir.."\\AecBase.dbx\"";
ShorCutString = ShorCutString.." /p ";
ShorCutString = ShorCutString.."\"AutoCAD MEP (HUN)\"";

Dialog.Message("This Is a String",ShorCutString); [COLOR="YellowGreen"]-- it is ready, and if i see the dialog, the "ShorCutString" message correct[/COLOR]-- Make a ShortCut with "ShorCutString" parameter, and the result will be incorrect
Shell.CreateShortcut(_DesktopFolder, "AutoCAD MEP ", ShorCutString, "", "", DLLdir.."\\MEP2009.ico", 0, SW_MAXIMIZE, nil, "MEP 2009 magyar felülettel");

Have any solution?

Regards Keki
Reply With Quote
  #2  
Old 09-17-2008
Mark's Avatar
Mark Mark is offline
Indigo Rose Staff Member
 
Join Date: Jun 2000
Location: Indigo Rose Software
Posts: 1,773
Hi keki,

When creating a shortcut using Shell.CreateShortcut() the target parameter should only be the target file. All command line options should be passed using the CmdLine parameter.

In your example you are attempting to pass command line options via the target parameter.

Try something closer to this:

Code:
-- Make a target comman line
ShorCutString = "\""..DLLdir;
ShorCutString = ShorCutString.."\\acad.exe\"";
strCommandLine = "/ld ";
strCommandLine = strCommandLine.."\""..DLLdir.."\\AecBase.dbx\"";
strCommandLine = strCommandLine.." /p ";
strCommandLine = strCommandLine.."\"AutoCAD MEP (HUN)\"";

Dialog.Message("This Is a String",ShorCutString);
Shell.CreateShortcut(_DesktopFolder
	, "AutoCAD MEP "
	, ShorCutString
	, strCommandLine
	, ""
	, DLLdir.."\\MEP2009.ico"
	, 0
	, SW_MAXIMIZE
	, nil
	, "MEP 2009 magyar felülettel");
__________________
MSI Factory The Next Generation Intelligent Setup Builder
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Shortcut Problem Antagony Setup Factory 7.0 Discussion 2 11-26-2007 06:16 AM
Problem with Uninstall Shortcut SteveinVegas Setup Factory 7.0 Discussion 2 12-02-2006 09:49 AM
Little but annoying shortcut problem. jalari Setup Factory 6.0 2 02-18-2003 02:25 AM
HOWTO: Uninstall a Shortcut Created with Actions Support Setup Factory 6.0 Knowledge Base 0 09-25-2002 10:50 AM
HOWTO: Create a Shortcut on the Desktop Support Setup Factory 6.0 Knowledge Base 0 09-19-2002 03:56 PM


All times are GMT -6. The time now is 02:26 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software