如何在Windows上实现MacOS中的open命令

在MacOS的终端中,想要快速便捷的在Finder中打开当前目录,直接使用oepn即可。

bash 复制代码
open .

但是Windows中没有直接提供类似open这样的命令,既然没有直接提供,我们就间接手搓一个实现它。

**步骤1:**创建open.bat

bash 复制代码
@echo OFF
explorer.exe %1

**步骤2:**将open.bat拷贝至C:\Windows目录下

**步骤3:**命令行中执行open命令

发现可以正常的在资源管理器中打开当前目录了,bingo

相关推荐
sbjdhjd5 天前
从 VLAN 到 MSTP 的交换网络入门
网络·计算机网络·mac·ip·stp·vlan·交换机
DogDaoDao6 天前
Windows 双 Shell 全面对比:CMD 与 PowerShell 的技术剖析
windows·shell·测试·powershell·cmd·程序员开发
Web3&Basketball7 天前
Meta Muse 816B 实测:两台 Mac 本地跑通
macos·大模型·mac·本地部署·moe·显存优化·meta muse
Keith Guo10 天前
Understanding the Layers of Wireless Chips: RF, Baseband, and MAC in ESP32-S31
mac·rf·baseband
CocoaKier13 天前
如何安装旧版的MacOS系统?
macos·ios·mac
Hello_Pyhx15 天前
WinDirStat 2.9.3:从目录扫描到可复查的占用报表
windows·mac·垃圾清理
OliverQiu16 天前
开源一个 macOS 小工具:集中管理 ChatGPT 的网络启动配置
macos·chatgpt·swiftui·mac·proxy·codex·dmg
bug和崩溃我都要16 天前
QT 开发的专业截图录屏工具 - macOS版 / Windows版
windows·qt·mac·录屏·截屏
Fcy64817 天前
Linux下 数据链路层详解(从以太网到ARP协议)
linux·mac·以太网·数据链路层·arp
Vex2une20 天前
Windows PowerShell 发展史:从命令行工具到自动化核心
windows·自动化运维·命令行·powershell·cmd·脚本语言·对象管道