{"id":16550289,"url":"https://github.com/sylhare/windows","last_synced_at":"2025-03-04T15:27:26.042Z","repository":{"id":92385402,"uuid":"90148316","full_name":"sylhare/Windows","owner":"sylhare","description":"Some .bat and windows info","archived":false,"fork":false,"pushed_at":"2020-09-12T15:19:55.000Z","size":101093,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-14T20:21:55.779Z","etag":null,"topics":["batch-script","batchfile","test","windows"],"latest_commit_sha":null,"homepage":null,"language":"Batchfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sylhare.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-03T12:48:33.000Z","updated_at":"2024-01-19T15:41:28.000Z","dependencies_parsed_at":"2023-05-17T02:15:38.639Z","dependency_job_id":null,"html_url":"https://github.com/sylhare/Windows","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sylhare%2FWindows","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sylhare%2FWindows/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sylhare%2FWindows/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sylhare%2FWindows/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sylhare","download_url":"https://codeload.github.com/sylhare/Windows/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241870989,"owners_count":20034380,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["batch-script","batchfile","test","windows"],"created_at":"2024-10-11T19:33:45.956Z","updated_at":"2025-03-04T15:27:26.019Z","avatar_url":"https://github.com/sylhare.png","language":"Batchfile","readme":"# Windows\n\n## Bacth Script\nYou 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.\n\n## Installing files\nTo start a `.exe` file you can either use `start` to start it or use use its `name.exe` to install it.\nGet [help](https://technet.microsoft.com/en-us/library/cc770297(v=ws.11).aspx) on the [start](https://ss64.com/nt/start.html) command:\n\n```batch\n    start /?\n```\n## Autorun\nWhen 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 -\u003e launching the movie, CD -\u003e launching the software or music, and all). Be careful some malicious softwares can be run too.\n\nInside your `autorun.int` :\n```python (for colouring)\n\t[autorun]\n\topen = application_to_start.bat\n```\n\n## CMD 101\n\nFor some of the necessary command:\n\n```dos\nF:\t\t\t\t# Go to drive F:\nCD C:\\folder\t\t\t# Like linux to go inside C:\\folder\nDIR\t\t\t\t# list what's inside the directory\nREN *.xyz *.txt\t\t\t# Rename file\nXCOPY *.txt C:\\folder\\  \t# Copy file from a folder to another\nMOVE C:\\folderA\\* C:\\folderB \t# Move content of folderA under folderB\n```\n\nA couple of trips:\n\n- In windows, paths are made using `\\` back slash.\n- To get help on a command use `\\?`.\n\t\n## Errors or problem encountered\n\n- [#3](https://github.com/Sylhare/Windows/issues/3) Error: Favorite Links folder broken on windows' explorer\n- [#2](https://github.com/Sylhare/Windows/issues/2) Error: BOOTMGR is missing at boot \u0026 0xc000000f\n- [#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)\n\t\n## Source\n\n- [CMD Info](http://steve-jansen.github.io/guides/windows-batch-scripting/part-1-getting-started.html)\n- [Silent install examples](http://help.tracker-software.com/EUM/default.aspx?pageid=silent_installation_pro5)\n- [Write a simple batch file](https://www.howtogeek.com/263177/how-to-write-a-batch-script-on-windows/)\n- [Developpez.com tutorial](http://initscreen.developpez.com/tutoriels/batch/apprendre-la-programmation-de-script-batch/)\n    \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsylhare%2Fwindows","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsylhare%2Fwindows","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsylhare%2Fwindows/lists"}