|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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 |
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
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.








Linear Mode

