Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6686221
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:08:49+00:00 2026-05-26T05:08:49+00:00

Normally you can create a shortcut to a printer from right click menu of

  • 0

Normally you can create a shortcut to a printer from right click menu of printer itself.

Is there any other way around?

I tried using IWshShortcut with following parameter as targetpath

"Control Panel\Hardware and Sound\Devices and Printers\MyPrinter"

It creates a shortcut but its not valid

Any ideas

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T05:08:50+00:00Added an answer on May 26, 2026 at 5:08 am

    IWshShortcut can’t create a shortcut to a printer because it supports only file system targets. To create a shortcut to a printer requires digging into the shell namespace, which is a very advanced topic. You need to get the LPITEMIDLIST for the FOLDERID_PrintersFolder, bind to that folder to get the IShellFolder, use IShellFolder::EnumObjects to enumerate the printers, decide which printer you like (perhaps by inspecting its name with IShellFolder::GetDisplayNameOf), and then use IShellLink::SetIDList to target a shell link to that printer. I gave you the magic words so you can do some searches and learn more about them, but I’m not going to try to teach the shell namespace on SO.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A user can import data into our website from a file. The data normally
So I have a datagridview. Normally I can create a bindinglist of my object
Possible Duplicate: Short way to create arrays? I can create an ArrayList, but, is
Normally, we can create properties like this, dynamic expando = new ExpandoObject(); expando.Price =
Background - Normally with basic UIViewControllers I'm across how you can create instance variables
Is there any IDE for desktop or web app, for create complex animations in
I hope I can explain this clearly.. Is there a way to configure the
Normally I can query an entity context using linq in the typical way, IQueryable<Product>
Normally I would create an element in jQuery like this $('<div id=errors class=red></div>') Can
Normally you can do this: <select size=3> <option>blah</option> <option>blah</option> <option>blah</option> </select> And it would

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.