【问题标题】:How to open a file in D drive through command prompt如何通过命令提示符打开D盘中的文件
【发布时间】:2021-11-24 06:17:21
【问题描述】:

文件夹路径:D:\Brian\adrk_v1_0;此文件夹有一个名为“filename”的文件,我希望使用命令提示符打开文件“filename”。

我试着这样做,写了以下内容

C:\Users\Anshuman

C:\Users\Anshuman> cd /d D:Brian\adrk_v1_0

D:\Brian\adrk_v1_0>

但是当我尝试打开“makefile”时,会发生这种情况:

 Directory of D:\Brian\adrk_v1_0

03-10-2021  11:13    <DIR>          .
03-10-2021  11:13    <DIR>          ..
13-12-2002  22:16    <DIR>          Const
13-12-2002  22:16    <DIR>          Energy
13-12-2002  22:16    <DIR>          Form
13-12-2002  22:16    <DIR>          GMICPP
13-12-2002  22:16    <DIR>          Group
13-12-2002  22:16    <DIR>          Input
14-12-2002  04:13             1,046 i_data.txt
11-12-2002  03:50             3,294 makefile
13-12-2002  22:16    <DIR>          Master
13-12-2002  22:16    <DIR>          Output
14-12-2002  04:20               223 o_rmv.dat
14-12-2002  04:20             3,718 o_sdf.dat
14-12-2002  04:20               223 o_sum.dat
14-12-2002  04:20               151 o_vac.dat
13-12-2002  22:16    <DIR>          PD
14-12-2002  06:16             2,394 readme.txt
13-12-2002  22:16    <DIR>          SDF
13-12-2002  22:16    <DIR>          Vector
               7 File(s)         11,049 bytes
              13 Dir(s)  579,931,025,408 bytes free

D:\Brian\adrk_v1_0>makefile
'makefile' is not recognized as an internal or external command,
operable program or batch file.

我已尝试在环境变量中将路径更改为 C: System 32。

【问题讨论】:

    标签: command command-prompt


    【解决方案1】:

    看起来你应该指定一个文本编辑器,例如:

    notepad makefile
    

    【讨论】:

    • 我必须编译这个makefile;如说明中所述。如何使用命令提示符编译这个 makefile? - 编译程序,在命令提示符下运行“makefile”; - 将创建 gmicpp.exe;
    猜你喜欢
    • 2021-09-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-09-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多