这里先讲一下系统变量:

注意:一旦将路径加入到环境变量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. Java并发知识(2)

    1. 什么是原子操作?在Java Concurrency API中有哪些原子类(atomic classes)? 原子操作是指一个不受其他操作影响的操作任务单元.原子操作是在多线程环境下避免数据不一致 ...

  2. Object-c 构造、析构函数

    一.构造函数 在OC中凡是已init开头的函数我们都称之为构造函数,在声明构造函数的时候,不带参数的一般直接声明为“-(id)init”,带参数的一般声明为“-(id)initWith...”. @i ...

  3. springmvc获取资源文件的两种方式(超简单)

    1 比如我们在sc目录下新建一个db.properties文件内容如下 DriverClass=com.mysql.jdbc.Driverurl=jdbc:mysql://localhost:3306 ...

  4. C#实现二维码生成与解码

    前几天公司内部分享了一个关于二维码的例子,觉得挺好玩的,但没有提供完整的源码.有时候看到一个好玩的东西,总想自己Demo一个,于是抽空就自己研究了一下. 一.二维码的原理 工欲善其事,必先利其器.要生 ...

  5. Validate the date format

    Validate the date format function checkdate(input) { var validformat = /^\d{2}\/\d{2}\/\d{4}$/; //Ba ...

  6. plot绘图

    plot绘图 坐标系图(折线图) 折线图用于显示随时间或有序类别的变化趋势 plt.plot(x,y,format_string,**kwargs) y:Y轴数据,列表或数组,必选 x:X轴数据,列表 ...

  7. Chi-Square Statistic/Distribution

    . 1.What is a Chi Square Test? 卡方检验有两种类型.两者使用卡方统计量和分布的目的不同. 第一种:卡方拟合优度检验确定样本数据是否与总体匹配.(这里不介绍) 第二种:独立 ...

  8. ALTER数据库

    alter table dbo.Sheet1$ alter column UserId int null

  9. Access to the path 'C:\inetpub\wwwroot\mysite\images\savehere' is denied.

    访问路径被拒绝 我解决了这个设置: IIS>应用程序池> [您的站点]>高级设置...>标识>内置帐户> LocalSystem

  10. window环境mysql解压版配置

    1.下载并解压 到官网下载mysql-5.5.10-win32.zip,然后将mysql解压到任意路径,如:C:\mysql-5.5.10-win32 2.设置环境变量 打开计算机->属性-&g ...