Search found 6 matches

by Shadow Thief
2022-Nov-07, 2:56 am
Forum: Windows CMD Shell
Topic: How to fix problems when running scripts as administrator
Replies: 2
Views: 235

Re: How to fix problems when running scripts as administrator

This is why it's generally recommended to have

Code: Select all

pushd "%~dp0"
at the top of your script.
by Shadow Thief
2022-Mar-27, 4:23 pm
Forum: Windows CMD Shell
Topic: Fichier batch pour copîer des repertoires avec teracopy
Replies: 2
Views: 1037

Re: Fichier batch pour copîer des repertoires avec teracopy

There doesn't seem to be any pattern between the two copies. How do you know which subfolders go where?

Also, TeraCopy is third-party software; it's not installed with Windows by default.
by Shadow Thief
2021-Dec-17, 8:07 pm
Forum: Windows CMD Shell
Topic: CMD Random
Replies: 2
Views: 1272

Re: CMD Random

I did an analysis of the two random number generation methods a while back and posted it on Reddit: https://www.reddit.com/r/Batch/comments ... lying_and/

Code: Select all

set /a rnd=(%RANDOM%%%(max-min+1))+min
is a more even distribution anyway.
by Shadow Thief
2021-Nov-20, 11:16 pm
Forum: Windows CMD Shell
Topic: Echo ESC char to serial port
Replies: 7
Views: 4635

Re: Echo ESC char to serial port

I'm not clear on what you're asking. Do you want to know how to write a script? Just put the commands in a text file and save it with the .bat extension. What would such a .bat script look like that is able to echo such a string containing multiple ESC chars ? Literally that very first command in y...
by Shadow Thief
2021-Nov-20, 5:51 am
Forum: Windows CMD Shell
Topic: Echo ESC char to serial port
Replies: 7
Views: 4635

Re: Echo ESC char to serial port

Terminal doesn't support it either, but writing a script to run the commands should preserve the ESC characters. Do you have any pointers for this , or was this just a general statement ? I'm not clear on what you're asking. Do you want to know how to write a script? Just put the commands in a text...
by Shadow Thief
2021-Nov-14, 12:38 am
Forum: Windows CMD Shell
Topic: Echo ESC char to serial port
Replies: 7
Views: 4635

Re: Echo ESC char to serial port

Terminal doesn't support it either, but writing a script to run the commands should preserve the ESC characters.