Put a shortcut under Windows Quick access list? [duplicate] - windows

This question already has answers here:
Is it possible programmatically add folders to the Windows 10 Quick Access panel in the explorer window?
(10 answers)
Closed 7 years ago.
I need to put a shortcut programmatically under Quick access list, just like DropBox and OneDrive did, see the picture: http://i.imgur.com/l5o2qzH.jpg.
Is there any documentation on how to do this?

You can do this by simply creating a shortcut to specific folder inside C:\Users\YourUserName\Links
This works on Windows 7. I need to test this on Windows 10.
EDIT: This method does not work on Windows 10

Related

Microsoft To Do - How do I hard Code using path [duplicate]

This question already has answers here:
Launching windows 10 store apps
(2 answers)
Closed 7 months ago.
WHAT I NEED:
I am trying to use a button to open MS To Do directly from inside my solution. But, neither the MS To Do exec file nor the path work? Does anyone know whether the exec file is in another location? I would greatly appreciate any help! I have googled everything I can think of to find a solution and nothing seems to work?
WHAT I HAVE TRIED
WINDOWS APPS FOLDER: Microsoft To Do app is apparently in this folder which is inaccessible. But, the following procedure provides access to this folder by changing ownership:
PROJECT: HOW TO ACCESS THE WINDOWSAPPS FOLDER.
SOURCE: https://www.alphr.com/access-windows-apps-folder/#:~:text=Windows%2010%20Apps%20folder%20is,C%3A%2FProgram%20Files%2FWindowsApps.
MICROSOFT TO DO FOLDER: There are 4 folders with similar names in the Windows Apps folder. The one we're interested in is the 4th folder (C:\Program Files\WindowsApps\Microsoft.Todos_2.74.51921.0_x64__8wekyb3d8bbwe). At the bottom of the list of files in this folder there is the Microsoft To Do exec file (i.e. Application). However, double clicking this file doesn't open the app. Rather, two notifications (i.e. message boxes) are shown:
"The code execution cannot proceed because SharedLibrary.dll was not found. Reinstalling the program may fix this problem."
"The code execution cannot proceed because mrt100_app was not found. Reinstalling the program may fix this problem."
I have already reinstalled the program but this didn't fix the problem?
MICROSOFT TO DO PATH: Tried hard coding the path from the properties of the app as follows, but the same problem occurs?
Right click the exec file > Properties > Security Tab > Advanced button > Path is at top of Advanced Properties as follows:
MICROSOFT TO DO PATH: C:\Program Files\WindowsApps\Microsoft.Todos_2.74.51921.0_x64__8wekyb3d8bbwe\Todo.exe
I also tried creating a desktop shortcut from the exec file, but it doesn't work and it doesn't create the MS To Do icon as a shortcut. That's why I wonder if this is the real exec file?
ANOTHER SOLUTION
How To Get Modern Apps Icons
Combining some answers from Launching windows 10 store apps:
Process.Start("explorer.exe", "shell:appsfolder\Microsoft.Todos_8wekyb3d8bbwe!App")
(Tested with VS2022 on W11.)

Update taskbar from batch after creating .lnk in its Folder [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
My task here is to pin two shortcuts to the taskbar by batch script.
I have a script adapted from here, creating two shortcuts in %APPDATA%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\, and it works well. Unfortunately my taskbar doesn't notice them being created and therefore doesn't show them.
How do I tell the taskbar to update itself, adding those shortcuts?
It's about Win10 PCs.
Edit: I tried it with pinnerjs.bat, it seems there is a strange problem: Its contextmenu doesn't see the same items as my contextmenu. Made pictures to illustrate. The item I need executed is "An Taskleiste anheften", the one directly below "Edit with Notepad++".
I can live with using pinnerjs if we get it to work, but I'd prefer a more direct solution (telling the taskbar to add the shortcuts in its folder).
Edit 2: Tried changing the pinnerJS script from saying "taskbar" to the german "taskleiste" - didn't work.
Try with pinnerjs.bat :
call pinnerjs.bat C:\Windows\System32\cmd.exe taskbar
Not sure how it will work with shortcut. Probably it will be better to directly pin the executable.

Remove a file shared with me using Google Drive SDK [duplicate]

This question already has an answer here:
How to programmatically remove a file from "share with me" in Google drive
(1 answer)
Closed 3 years ago.
When right click a file under the "Shared with me" node on Google Drive a context menu item called "Remove" is available to remove the selected item that is shared with me.
Is there a way to achieve the same using Google Drive SDK? Thanks a lot.
Drive V3 - With shared with me the user has a permissions record for the file. If you remove that then the file will no longer be shared with the user.
Unfortunately the API currently doesn't support this operation. Please file a feature request here: https://code.google.com/a/google.com/p/apps-api-issues/issues/entry?template=Feature%20request&labels=Type-Enhancement,API-Drive

i am trying to make my .exe application run as administrator on any users computer [duplicate]

This question already has answers here:
Set app to require elevation?
(2 answers)
Closed 7 years ago.
I have made an .exe windows Application which needs to run with Administration rights. When i open my app it does not prompt me the user account control in which one has to put his password.
so my app does not work.
my windows users don't know that it will only work by right clicking and choosing run as administrator.
i need want that when clicked it should prompt the user to enter their password.
i am little frustrated because i have searched google whole day but found nothing.
i am not using Visual Studio
One possible way is right click your .exe file then choose compatibility tab and check the option “Run this program as an administrator” in Privilege Level section.

How to catch file download event in Firefox Extension? [duplicate]

This question already has an answer here:
Closed 10 years ago.
Possible Duplicate:
How to hook the download dialog in a Firefox extension?
I have developed a Download Accelerator and now want to create a Firefox Extension for it. What I need to know is when a file download is requested. I have read about the 'observer-service' events such as 'dl-start'. However, these events are fired after the default download dialog is displayed, I need to catch the download before the default.
Any suggestions?
I believe the answer to this question is what you are also looking for:
How to hook the download dialog in a Firefox extension?

Resources