Windows等效于./(当前目录) [英] windows equivalent of ./ (current directory)

查看:128
本文介绍了Windows等效于./(当前目录)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Linux上,我想执行一些文件并使用相对路径.

On Linux when I want to execute some file and use relative path.

例如,我想做这样的事情:

For example I want to do something like this:

cd c:\windows
c:\windows>./System32/ipconfig.exe

但是我得到的是一条错误消息,告诉我."找不到.

However what I get is an error message telling me that "." has not been found.

推荐答案

句点表示Windows中的当前目录.

A period denotes the current directory in Windows.

在您的示例中,您将使用以下内容:

For your example you would use the following:

c:\> cd c:\windows
c:\Windows> .\System32\ipconfig.exe

或者,您也可以放弃.\并这样做:

Alternately, you could forego the .\ and do it like this:

c:\Windows> System32\ipconfig.exe

这篇关于Windows等效于./(当前目录)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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