In Qt I know you can create a shortcut (lnk) using the following method
QFile::link("myapp.exe", "myapp.exe.lnk");
This works fine but I want to create an lnk that also has some arguments in the target path. Anyway to do this in Qt?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I found the following answer from Constantin Makshin in the Qt-interest mailing list:
Apart from using the native API, you could also create a
.batfile and store the command line call in there.