添加上下文菜单的Windows资源管理器运行BAT文件 [英] Adding context menu to Windows Explorer to run BAT files

查看:164
本文介绍了添加上下文菜单的Windows资源管理器运行BAT文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有什么办法来添加新条目到Windows资源管理器右键菜单,可以与选定的文件作为参数运行一个BAT文件/命令。

Is there any way to add a new entry to windows explorer context menu that could run a BAT file/command with the selected file as argument.

具体而言,我需要做的:

Specifically, I need to do:

pscp -pw password E:\File.txt myname@machine.univ.edu:/home/myname/Files/

右键单击该文件,选择菜单项复制到服务器,在Windows资源管理器。

on right clicking the file and selecting the menu item "Copy to server" in windows explorer.

推荐答案

您需要外壳扩展。看看这个完全指南: HTTP://www.$c$cproject。 COM / KB /壳/ shellextguideindex.aspx

You need shell extension. CHeck out this for complete guide: http://www.codeproject.com/KB/shell/shellextguideindex.aspx

和不要忘记不要写在托管code过程中的外壳扩展。详细信息在这里:
http://blogs.msdn.com/b/oldnewthing /archive/2006/12/18/1317290.aspx

And dont forget "Do not write in-process shell extensions in managed code". Details here: http://blogs.msdn.com/b/oldnewthing/archive/2006/12/18/1317290.aspx

这篇关于添加上下文菜单的Windows资源管理器运行BAT文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆