Giter Club home page Giter Club logo

Comments (3)

bfchengnuo avatar bfchengnuo commented on May 22, 2024

SC

当需要管理(增加、删除、修改等)Windows 系统中的系统服务时,可使用 Windows 系统提供的 sc 命令来管理系统服务。

因为 sc 命令中的大部分命令参数需要 “以管理员身份运行”,所以使用时,开启 cmd 直接用管理员运行就可以了。

常用命令:

  • 获取帮助:sc /?
  • 查看服务状态:sc query [Name]
  • 启动服务:sc start [Name]
    该命令不会输出启动信息(或使用 net start [Name] 会输出启动信息)
  • 停止服务:sc stop [Name]
    该命令不会输出停止信息 (或使用 net stop [Name] 会输出停止信息)
  • 删除服务:sc delete [Name]

see: https://my.oschina.net/yaray/blog/902131

from myrecord.

bfchengnuo avatar bfchengnuo commented on May 22, 2024

Windows PowerShell

配合 Windows Terminal 确实看起来还不错的样子。

这个玩意从 win7 开始内置,与 cmd 并存;也许是因为 cmd 太鸡肋,所以搞出了这个,看名字,基本就是 win 下的 shell,牛逼的一点是可以利用 .NET Framework 的强大功能。

为了兼容 Unix/Linux Shell (主要是 bash ) 的命令;Powershell 中提供了一套机制来兼容 cmd 和 bash 基本的命令。

常见的一些命令:
Get-Command -Name xxx
Get-Help
Measure-Command
Get-History

from myrecord.

bfchengnuo avatar bfchengnuo commented on May 22, 2024

copy

用于批量合并文件,速度非常快,例如:
copy /b *.ts new.ts

/b 表示二进制方式。

PS:linux 下使用 cat *.ts > new.ts

from myrecord.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.