A
AJF_1
Guest
When you create an application shortcut within windows explorer, you have the option to modify the properties of the shortcut by right click> properties.
There are two properties that I need to modify for my application to run correctly, 'Target:' and 'Start in'.
I am modifying the 'Target' property to start a different program which launches my program using an argument so looks something like...:
C:\External_Program.exe -start"C:\My_Application.exe"
My_Application is the C# application that I am developing in visual studio. External_Program is another off the shelf program I have purchased.
I am modifying the 'Start in' property of the shortcut to point to the folder that External_Program is located in. Such as:
C:\
....
So I need to find a way, within Visual Studio to run the application I'm developing ('My_Application') and run it with the same properties as I would if I were to create a shortcut and modify the 'Start in' and 'Target' properties of the shorcut. At the moment I have to build the project, go to the debug/release folder, create a shortcut of the 'My_Application.exe' and then manually modify the shortcut.
This is then further complicated because I want to combine this project into a solution with other projects, reference 'My_Application' project and make calls to it from other projects, such that I can't just program the creation of a shortcut and then launch it as a process.
I have a solution with two projects within it. I am using project_1 to make calls to project_2 ('My_Application') within the solution. It is project_2 ('My_Application') I need to assign these properties to.
Please advise if you know is this is possible?
I have tried modifying the registry Path values but haven't figured out how to modify the 'Start in' and 'Target' values within the registry.
Best regards
Continue reading...
There are two properties that I need to modify for my application to run correctly, 'Target:' and 'Start in'.
I am modifying the 'Target' property to start a different program which launches my program using an argument so looks something like...:
C:\External_Program.exe -start"C:\My_Application.exe"
My_Application is the C# application that I am developing in visual studio. External_Program is another off the shelf program I have purchased.
I am modifying the 'Start in' property of the shortcut to point to the folder that External_Program is located in. Such as:
C:\
....
So I need to find a way, within Visual Studio to run the application I'm developing ('My_Application') and run it with the same properties as I would if I were to create a shortcut and modify the 'Start in' and 'Target' properties of the shorcut. At the moment I have to build the project, go to the debug/release folder, create a shortcut of the 'My_Application.exe' and then manually modify the shortcut.
This is then further complicated because I want to combine this project into a solution with other projects, reference 'My_Application' project and make calls to it from other projects, such that I can't just program the creation of a shortcut and then launch it as a process.
I have a solution with two projects within it. I am using project_1 to make calls to project_2 ('My_Application') within the solution. It is project_2 ('My_Application') I need to assign these properties to.
Please advise if you know is this is possible?
I have tried modifying the registry Path values but haven't figured out how to modify the 'Start in' and 'Target' values within the registry.
Best regards
Continue reading...