这里先讲一下系统变量:

注意:一旦将路径加入到环境变量Path中,那么运行它下面的程序的时候就不用非得指定到目标路径中,直接键入命令就行了。

1.type命令:打开并读取文件里面的内容。

 C:\Users\Administrator>type C:\Users\Administrator\Desktop\css\style.css

2.dir命令:列出路径目录结构。

 C:\Users\Administrator>dir

3.mkdir命令:创建文件夹。

 C:\Users\Administrator>mkdir data

4.“D:”or“E:”命令:转到其他卷标。

 C:\Users\Administrator>D:

CD命令:定位到同一卷标的其他路径。

 D:\>CD D:\Program Files\mongodb\bin

 D:\Program Files\mongodb\bin>

“CD ..”与“CD ../..”命令:向前定位。

 D:\Program Files\mongodb\bin>CD ..

 D:\Program Files\mongodb>CD ../..

 D:\>

5.Windows服务:(以配置mongodb为例:http://www.cnblogs.com/qiernonstop/p/3436454.html

  创建服务

 C:\Users\Administrator>D:

 D:\>CD D:\Program Files\mongodb\bin

 D:\Program Files\mongodb\bin>mongod --install --serviceName MongoDB --serviceDis
playName MongoDB --logpath "D:\Program Files\mongodb\data\log\MongoDB.log" --dbp
ath "D:\Program Files\mongodb\data\db" --directoryperdb

  启动服务(在运行里直接输入 services.msc 也可以打开服务选项)

 C:\Users\Administrator>net start MongoDB

  停止服务

 C:\Users\Administrator>net stop mongodb  

  删除服务

 C:\Users\Administrator>sc delete MongoDB

Windows命令行参数(不断更新)的更多相关文章

  1. Windows命令行参数的知识(一)

    最近没事的时候,准备研究一下Windows命令行参数的知识,因为每次自己在操作电脑时总是效率太慢,如果能够了解Windows参数的一些知识,绝对能提高效率! 基本外部命令和内部命令 首先是基本的知识, ...

  2. 使用getopt函数对windows命令行程序进行参数解析

    getopt()是libc的标准函数,很多语言中都能找到它的移植版本. // -b -p "c:\input" -o "e:\test\output" bool ...

  3. Windows下解析命令行参数

    linux通常使用GNU C提供的函数getopt.getopt_long.getopt_long_only函数来解析命令行参数. 移植到Windows下 getopt.h #ifndef _GETO ...

  4. windows WTL使用命令行参数

    两中方法: 第一种: int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE /*hPrevInstance*/, LPTSTR lpstrCmdLin ...

  5. Unity3D 命令行参数

    Unity3D 命令行参数 @by 广州小龙                                              unity ios开发群:63438968 Typically, ...

  6. 探索Windows命令行系列(2):命令行工具入门

    1.理论基础 1.1.命令行的前世今生 1.2.命令执行规则 1.3.使用命令历史 2.使用入门 2.1.启动和关闭命令行 2.2.执行简单的命令 2.3.命令行执行程序使用技巧 3.总结 1.理论基 ...

  7. php 命令行参数

    getopt (PHP 4 >= 4.3.0, PHP 5, PHP 7) getopt — 从命令行参数列表中获取选项 说明 array getopt ( string $options [, ...

  8. VLC命令行参数详解

    VLC命令行参数详解 2012-11-29 14:00 6859人阅读 评论(0) 收藏 举报 Usage: vlc [options] [stream] ...You can specify mul ...

  9. unity命令行参数

    Typically, Unity will be launched by double-clicking its icon from the desktop but it is also possib ...

随机推荐

  1. mysql之explain

    ⊙ 使用EXPLAIN语法检查查询执行计划   ◎ 查看索引的使用情况   ◎ 查看行扫描情况   ⊙ 避免使用SELECT *   ◎ 这会导致表的全扫描   ◎ 网络带宽会被浪费   话说工欲善其 ...

  2. JDK和Tomcat部署时,版本不同的问题解决

    问题: 在以Tomcat作为Web容器,启动java Web工程时,遇到下面问题:org.eclipse.jdt.internal.compiler.classfmt.ClassFormatExcep ...

  3. 基元线程同步构造之waithandle中 waitone使用

    在使用基元线程同步构造中waithandle中waitone方法的讲解: 调用waithandle的waitone方法阻止当前线程(提前是其状态为Nonsignaled,即红灯),直到当前的 Wait ...

  4. spark 创建稀疏向量和矩阵

    http://blog.csdn.net/canglingye/article/details/41316193 [相互转换]:http://stackoverflow.com/questions/3 ...

  5. centos7部署cacti

    一.centos部署cacti 1. 关闭selinux. 2.fabric一键部署lamp 3. 设置mysql密码123456 1 mysql_secure_installation 4. 安装s ...

  6. mysql datetime与timestamp精确到毫秒的问题

    CREATE TABLE `tab1` (`tab1_id` VARCHAR(11) DEFAULT NULL,`create` TIMESTAMP(3) NULL DEFAULT NULL,`cre ...

  7. Android中WebView使用全解

    开始 在Android系统中内嵌的WebKit,这是一个浏览器内核,它帮助着我们可以浏览网页.在实际开发中,如果你想让你的App能够访问网页,那就需要用到WebView这个控件. 如何使用? 其实使用 ...

  8. 第七章 二叉搜索树(d4)AVL树:(3+4)-重构

  9. The Closest M Points

    The Closest M Points http://acm.hdu.edu.cn/showproblem.php?pid=4347 参考博客:https://blog.csdn.net/acdre ...

  10. Python调shell

    os.system(cmd) 函数返回cmd的结束状态码,阻塞调用. os.popen(cmd) 函数返回cmd的标准输出,阻塞调用. (status, output) = commands.gets ...