https://github.com/sylhare/windows
Some .bat and windows info
https://github.com/sylhare/windows
batch-script batchfile test windows
Last synced: about 1 year ago
JSON representation
Some .bat and windows info
- Host: GitHub
- URL: https://github.com/sylhare/windows
- Owner: sylhare
- Created: 2017-05-03T12:48:33.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2020-09-12T15:19:55.000Z (over 5 years ago)
- Last Synced: 2025-01-14T20:21:55.779Z (about 1 year ago)
- Topics: batch-script, batchfile, test, windows
- Language: Batchfile
- Size: 96.4 MB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Windows
## Bacth Script
You can write Windows scripts using batchfile that are DOS / [CMD](https://ss64.com/nt/) lines for windows. For more advance features, the best is still to use PowerShell.
## Installing files
To start a `.exe` file you can either use `start` to start it or use use its `name.exe` to install it.
Get [help](https://technet.microsoft.com/en-us/library/cc770297(v=ws.11).aspx) on the [start](https://ss64.com/nt/start.html) command:
```batch
start /?
```
## Autorun
When plugin something from a computer, you can have [default action](https://www.howtogeek.com/howto/windows-vista/disable-autoplay-in-windows-vista/). One of them is reading the `autorun.inf` file which have instruction to start softawre (DVD -> launching the movie, CD -> launching the software or music, and all). Be careful some malicious softwares can be run too.
Inside your `autorun.int` :
```python (for colouring)
[autorun]
open = application_to_start.bat
```
## CMD 101
For some of the necessary command:
```dos
F: # Go to drive F:
CD C:\folder # Like linux to go inside C:\folder
DIR # list what's inside the directory
REN *.xyz *.txt # Rename file
XCOPY *.txt C:\folder\ # Copy file from a folder to another
MOVE C:\folderA\* C:\folderB # Move content of folderA under folderB
```
A couple of trips:
- In windows, paths are made using `\` back slash.
- To get help on a command use `\?`.
## Errors or problem encountered
- [#3](https://github.com/Sylhare/Windows/issues/3) Error: Favorite Links folder broken on windows' explorer
- [#2](https://github.com/Sylhare/Windows/issues/2) Error: BOOTMGR is missing at boot & 0xc000000f
- [#1](https://github.com/Sylhare/Windows/issues/1) Error: VT-x is disabled in the BIOS for all CPU modes (VERR_VMX_MSR_ALL_VMX_DISABLED)
## Source
- [CMD Info](http://steve-jansen.github.io/guides/windows-batch-scripting/part-1-getting-started.html)
- [Silent install examples](http://help.tracker-software.com/EUM/default.aspx?pageid=silent_installation_pro5)
- [Write a simple batch file](https://www.howtogeek.com/263177/how-to-write-a-batch-script-on-windows/)
- [Developpez.com tutorial](http://initscreen.developpez.com/tutoriels/batch/apprendre-la-programmation-de-script-batch/)