Comments (3)
Hi Claudio,
Here's a simple example:
winapiexec64.exe shell32.dll@SHObjectProperties 0 2 C:\Windows Sharing , u@MessageBoxW 0 "Showing properties..." $$:0 0
This example opens the properties of C:\Windows
with the Sharing tab. Not that the message box is necessary to keep the process running. There might be better solutions, but it requires some extra thought.
Edit: Here's the proper way to do it, and it makes more sense to create a small command line tool for the task:
https://devblogs.microsoft.com/oldnewthing/20080528-00/?p=22163
from winapiexec.
Hi @m417z
Thank you for your prompt reply.
The command line worked correctly for me in cmd.exe.
In PowerShell it did not work, although I suppose I could launch from there a cmd.exe and get a similar result as previously mentioned.
Unfortunately the requirement to open an extra window (u@MessageBoxW 0 "Showing properties..."
) makes the procedure a bit "ugly".
Thanks for the link to the proper way:
Reading a contract from the other side: SHSetInstanceExplorer and SHGetInstanceExplorer - The Old New Thing
Unfortunately my current knowledge of C programming does not justify me trying to approach the task from that side.
I put a feature request on the GDProp GitHub Repo to add a parameter to indicate the tab:
[FR] Add support for additional parameter with the name of the property sheet to display - Issue #4.
At this point, it would seem that that is the most reasonable way to get this functionality, at least for me.
🙏 Thanks for all the helpful programs you share with the community.
Regards,
Claudio Salvio
I 💙 Textify
I 💙 7+ Taskbar Numberer
from winapiexec.
There's a "show-properties.exe <path to file or directory>" here using the proper way:
https://github.com/JosephusPaye/show-properties/blob/master/src/show-properties.cpp
from winapiexec.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from winapiexec.