Search found 5 matches

by Lordoa
14 Mar 2022 09:26
Forum: DOS Batch Forum
Topic: Showcasing the stuff I made over time
Replies: 2
Views: 5610

Re: Showcasing the stuff I made over time

Here is command line one-liner to play snake. Just Ctrl+c and ctrl+v into an open terminal to play. WASD to move ver 2: -Using a font with an aspect ratio close to 1 is recommended. -While I did know that time could be used to calculate the length of a game tick, it obliviously didn't occur to me (n...
by Lordoa
01 Mar 2022 09:24
Forum: DOS Batch Forum
Topic: Showcasing the stuff I made over time
Replies: 2
Views: 5610

Showcasing the stuff I made over time

Here is some of the batch garbage I made over the years (actually quarantine, other stuff didn't make the cut) https://drive.google.com/drive/folders/1SMPvNqTgC64KrN2zRvq3rIFd5plCNWU2?usp=sharing Don't get me wrong I have created plenty of more garbage. It's just that this garbage has the most inter...
by Lordoa
10 Jun 2021 15:18
Forum: DOS Batch Forum
Topic: Get cursor position
Replies: 5
Views: 5937

Re: Get cursor position

Definitely might use that. :D You potentially only need to run powershell once I figured there existed a powershell one-liner to get cursor position, but I was kind of hoping for a native batch way to insert an {ENTER} (to store cursor location in set /p). For example getting the enter key using pro...
by Lordoa
10 Jun 2021 13:20
Forum: DOS Batch Forum
Topic: Get cursor position
Replies: 5
Views: 5937

Get cursor position

Hello people, I have this script to get the cursor position, but it is quite slow. Is there a way to make it faster, or even better, native batch? @echo off title Get cursor cls setlocal enabledelayedexpansion if not "%1" == "" goto sendenter set strlen=for /l %%a in (1,1,2) do if "%%a" == "2" (for ...
by Lordoa
31 May 2021 13:06
Forum: DOS Batch Forum
Topic: copy doc files
Replies: 1
Views: 2693

Re: copy doc files

Hello,

I would use the following

Code: Select all

set folderX=Y:\folderx
for /r "C:\" %i in (*.doc) do xcopy "%i" "%folderX%"
for /r "D:\" %i in (*.doc) do xcopy "%i" "%folderX%"
Perhaps there's a better more efficient way to do this, but I'm not familiar enough with all the copy options.

Lordoa