Create shortcut to folder via automation

I am trying to create my own template, and as part of this template I want my automation to automatically create a shortcut to the “Master File” location inside the logs folder. The idea is so that if one of the admins need to get to any settings files or files generated by the automation they can right click go to logs and follow the link. How can I accomplish this?

I found VB that can do this, but I have not tried to inject VB into a project. I am also open to other solutions to this issue as well.

CreateShortCut “f:\akhil”, “C++ Folder”, “c:\tc”

@LeftBrainCo,

Can you please use this Invoke code Activity to execute your VB Code. Please refer this link for more information.

Thanks,
Arunachalam.

I would probably just invoke the code as it’d be the most reliable and easy to implement in ~8 lines of code.

You could also use windows UI to create the shortcut with a right click - create shortcut, then use the move activity to move it to the logs folder.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.