The new context-menu entry can be used immediately. The correct path to the script in the text below, with doubleīack-slashes inside the file-name): Windows Registry Editor Version DLL -ExecutionPolicy Bypass -File \"C:\\Temp\\test.ps1\" \"%1\"" It will create a context-menu actionĬalled "Get DLL version" and uses the above script (be sure to set Set-Clipboard -Value (Get-Item "$param1").VersionInfo.ProductVersion ps1 script file with theįollowing contents. Your PowerShell was almost correct, just missing one pair of parenthesis: Set-Clipboard -Value (Get-Item "C:\Directory\Application.dll").VersionInfo.ProductVersion Is it possible that this feature does not work on a Windows-10 version? If not, is there some patch available in order to make this work? I've found out that I was working on Windows Server, using this feature. How to integrate this in Windows context menu (rightclick and launch the command on that file).How to use that result as an input to copy to clipboard ( Set-Clipboard -Value Get-Item "C:\Directory\Application.dll").VersionInfo.ProductVersion does not work).In case I proceed with this solution, I would need to know: In Powershell, I have launched following command, which is very promising: Get-Item "C:\Directory\Application.dll").VersionInfo.ProductVersion Like that, I might start searching for a patch. Now I would like to copy that information into clipboard but this seems not to work, as you can see from this screenshot:Īs you can see, I can select the information, but I can't copy it to clipboard, while I would like to copy the ShortSha in order to find that information back in my Git-Extensions versioning system.Īs far as my Windows version is concerned, this is the result of the winver command:įor your information: I'm sure having worked with a Windows version where it was possible copying that information (that was a Windows Server version).Īs I'm sure I have done this on another Windows environment, I would like to know the exact name of that feature and an example of such a Windows environment. I always enjoy learning other time saving steps and tricks, which means I am happy to leach from your experience and use it as my own.I have just worked quite a lot to get ShortSha information in the details of a compiled file. If you have your own favorites, feel free to drop me a comment. Over the course of your entire IT career this could add up to several minutes. So save a keystroke and leave the space out. You will notice that there is no space in the command. The command is ipconfig/ all (or ipconfig/ release & ipconfig/ renew). It may not seem like much, but a network admin will use this command many times in a day, so over a long time this can add up. I will use Ctrl-V on the text I have highlighted above and watch what happens: WinXP_圆4_5400_storage_included_ISO.Īs easy as that, I have copied from the command prompt and used the text!Īnother command prompt trick is just to save a single keystroke in executing a command. You can go to your document, your explorer address bar, or anywhere else and paste it in just like any other clipboard contents. Once it is highlighted, just hit enter to put it in your clipboard. Then I just used my mouse to select the text. I followed the steps above until I could click Mark. Now I want to select some text, so I have just typed dir to see some output: Then select Edit, which pops out more choices: If you click on the little black C:\ at the top left of the window, notice what you get: Let’s take a look at a command prompt window: Well, there is a way around this failure. The first one that I love to use stems from my constant attempts to copy text from the command prompt window and failing miserably. I just wanted to mention a couple of tricks that I have found to be useful. In the meantime, we may still be using our old standby commands in the Windows command prompt just because we have been using them for so long and don’t want to let them go. More than likely we are on the PowerShell bandwagon and learning it as fast as we can. It seems that we chug along with the same commands over and over in our daily lives as network admins.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |