Showing posts with label sc. Show all posts
Showing posts with label sc. Show all posts

Thursday, June 13, 2019

Sc create, devcon install Difference

In Window Driver, There are the pnp(plug-and-play) type drivers, and the non-pnp type drivers. When non-pnp type drivers have once installed, they would be supposed to be used continuously without uninstall. On the other hand, pnp drivers are namely for easy plug-in(out). For two different types of driver, two-ways of installing exists.

1. PNP Driver

sc create [service name] binpath=[c:\...] type=[kernel]

sc start [service name]

sc stop [service name]

Because sc command is used for creating wide-range window-services, this is Not used only for the device driver. But this is also useful for the device driver.

2. Non PNP Driver

devcon install [filename.inf] [hardware id]

[osx command] file or folder monitoring

1. command fswatch [file or folder to monitor] | xargs -I {} echo $(date) {} >> [log file name] ...