|
-
July 23rd, 2010, 02:59 PM
#1
Creating a Windows shortcut in C++
Hi everyone,
I have the following problem to solve:
I have a configuration file that contains only a path (like C:/Program Files/install for instance). In this path, I have to unzip an Apache. I do not install Apache because the zip I have contains special configuration I need in my project.
With the Apache unpacked, I have 2 things to do:
1- Edit the httpd.conf file in order to contain the "unzip" path correctly
2- Create a "start Apache" shortcut.
The problem I have is exactly in the step 2. I just don't know how to create a shortcut from inside a C++. As most of you should know, this shortcut is not just an executable call. In my PC, the shortcut has the following meaningful info:
Target: "C:\Program Files\Apache Software Foundation\Apache2.2\bin\httpd.exe" -w -f "C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf" -d "C:\Program Files\Apache Software Foundation\Apache2.2\."
Start in: "C:\Program Files\Apache Software Foundation\Apache2.2\"
So, is it possible to create this shortcut?
thanks in advance for your help
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|