explorer

get a folder path from the explorer menu to a powershell variable

别等时光非礼了梦想. 提交于 2020-01-11 09:24:07
问题 is it possible to open a explorer window from powershell and store the path selected in the explorer, to a variable? to open explorer window from powershell PS C:> explorer 回答1: Maybe this script is what you want: Function Select-FolderDialog { param([string]$Description="Select Folder",[string]$RootFolder="Desktop") [System.Reflection.Assembly]::LoadWithPartialName("System.windows.forms") | Out-Null $objForm = New-Object System.Windows.Forms.FolderBrowserDialog $objForm.Rootfolder =

Windows 7 Explorer cannot sort files alphabetically

倾然丶 夕夏残阳落幕 提交于 2020-01-11 08:06:10
问题 I use sort by + name, and explorer cannot sort my files by name. How can they screw up something so easy? Is there any magic registry way to do this, here is the explorer output and dir output. I want the dir version of course. 回答1: Windows 7's sort is an absolute joke. The rubbish above about natural sorting is no excuse - I don't know anyone who would naturally sort "Back to the Future 3" before "Back to the Future" for example, and other languages existed pre Windows 7. The fix can be

手动删除快捷方式小箭头

柔情痞子 提交于 2020-01-09 15:43:34
新建一个文本文件,并输入如下代码: reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v 29 /d "%systemroot%\system32\imageres.dll,197" /t reg_sz /f taskkill /f /im explorer.exe attrib -s -r -h "%userprofile%\AppData\Local\iconcache.db" del "%userprofile%\AppData\Local\iconcache.db" /f /q start explorer pause 然后另存为.bat批处理文件,以管理员权限运行即可 来源: CSDN 作者: DaveKozer 链接: https://blog.csdn.net/u012720047/article/details/103904525

Run a batch file at folder's context menu

北城以北 提交于 2020-01-05 02:18:10
问题 I'd like to run this batch file (setenv.cmd) when I right click on any folder: @echo off SET CPLUS_INCLUDE_PATH=C:\mingw32\include;C:\mingw32\lib\gcc\mingw32\4.9.2\include; SET PATH=%PATH%;C:\Archivos de programa\7-Zip;C:\Archivos de programa\WinRAR;C:\usr\bin;C:\msys\1.0\bin;C:\gtk2\bin SET PKG_CONFIG_PATH=C:\gtk2\lib\pkgconfig;C:\usr\lib\pkgconfig @echo on I setuped my registry from this page, with the "prompt here". My question is how to open the console window from the selected directory

Run a batch file at folder's context menu

故事扮演 提交于 2020-01-05 02:18:05
问题 I'd like to run this batch file (setenv.cmd) when I right click on any folder: @echo off SET CPLUS_INCLUDE_PATH=C:\mingw32\include;C:\mingw32\lib\gcc\mingw32\4.9.2\include; SET PATH=%PATH%;C:\Archivos de programa\7-Zip;C:\Archivos de programa\WinRAR;C:\usr\bin;C:\msys\1.0\bin;C:\gtk2\bin SET PKG_CONFIG_PATH=C:\gtk2\lib\pkgconfig;C:\usr\lib\pkgconfig @echo on I setuped my registry from this page, with the "prompt here". My question is how to open the console window from the selected directory

Opening a program with PowerShell from a shortcut

混江龙づ霸主 提交于 2020-01-02 08:33:26
问题 I have a problem with creating a shortcut that opens a certain program in Powershell. It is part of a small game server. Therefore the server folder needs to be able to be copied, to create another server. The program needs to be run in administrator mode. It needs to work for both cmd an powershell (I don't mind if they are 2 different shortcuts due to syntax). What I have so far: CMD: %SystemRoot%\System32\cmd.exe /c D: & cd "D:\Path\to\server\folder\" & Server.exe PowerShell: %SystemRoot%

Opening a program with PowerShell from a shortcut

纵饮孤独 提交于 2020-01-02 08:31:09
问题 I have a problem with creating a shortcut that opens a certain program in Powershell. It is part of a small game server. Therefore the server folder needs to be able to be copied, to create another server. The program needs to be run in administrator mode. It needs to work for both cmd an powershell (I don't mind if they are 2 different shortcuts due to syntax). What I have so far: CMD: %SystemRoot%\System32\cmd.exe /c D: & cd "D:\Path\to\server\folder\" & Server.exe PowerShell: %SystemRoot%

Copying file details from Explorer as tabular text

旧街凉风 提交于 2020-01-02 07:10:23
问题 I am looking for a way to easily copy the file details that appear in a Windows Explorer (details view) and paste it as tabular text. Ideally, the procedure would be to select some files in an Explorer, make a choice in the context menu (or use a shortcut key), and the list would be copied to the clipboard. When pasting, the tabular format would be preserved so that Excel would recognize the columns or Word keep tabs (or create a table). I would like to have a solution that transfers the

Where can I learn about the “shell:” URI?

这一生的挚爱 提交于 2020-01-02 02:26:06
问题 I just realised there is a shell: URI, but every search engine seems to think shell: and shell are the same thing. The only thing I've found out is that you can type shell:startup right in explorer (XP & 7 tested) for obvious effects. This is good already because there is no %startup% , but I want to know what else is this capable of. Is there any MS reference on this? EDIT (even if it's not on MSDN) 回答1: Stuart seems to have found a fairly thorough list of the folders; I'll speak to the

Implement Explorer ContextMenu and pass multiple files to one program instance

谁都会走 提交于 2020-01-01 02:33:27
问题 Situation I have a 3rd party GUI application that accepts multiple files via CLI, for example: MyProgram.exe "file1" "file2" Then all the files are loaded at once into the same instance of the application. To optimize my time I would like to load multiple files by doing right-mouse-click on some files from Windows Explorer (eg: Select 5 files > do right-click > select "Open in MyProgram" command ) I know how to create the needed registry keys to add that command in the context menu for