Search found 13 matches

by shokarta
31 Aug 2020 01:31
Forum: DOS Batch Forum
Topic: SerialPort copy string instead of file
Replies: 5
Views: 912

Re: SerialPort copy string instead of file

So lets say would need to send bytes (5,97,16,0,138,5,97,17,0,137,5,97,18,0,136), in order to convert it it would look like: 1) Express the character's Unicode numbers (UTF-16) in Binary: 5 = 0x05 = 00000101 97 = 0x61 = 01100001 16 = 0x10 = 00010000 0 = 0x00 = 00000000 138 = 0x8A = 10001010 5 = 0x05...
by shokarta
31 Aug 2020 00:59
Forum: DOS Batch Forum
Topic: SerialPort copy string instead of file
Replies: 5
Views: 912

Re: SerialPort copy string instead of file

Helo penpen, this works like a charm, however this makes zero sence to me… I was trying to break it up line by line to see what each line is doing, however no luck of understanding… Would you please break it down with comments what each line does? also, in the conversion, there are two things that d...
by shokarta
28 Aug 2020 05:05
Forum: DOS Batch Forum
Topic: SerialPort copy string instead of file
Replies: 5
Views: 912

SerialPort copy string instead of file

Dear all, im using this so far: mode COM3 BAUD=9600 PARITY=n DATA=8 copy Ascii\5.chr \\.\COM3 copy Ascii\64.chr \\.\COM3 copy Ascii\33.chr \\.\COM3 copy Ascii\0.chr \\.\COM3 copy Ascii\154.chr \\.\COM3 which basicaly sends 5 chars into serial port. each number (filename) represents ascii symbol (the...
by shokarta
20 Aug 2020 00:09
Forum: DOS Batch Forum
Topic: auto updater of new releases
Replies: 9
Views: 2317

Re: auto updater of new releases

Hello Steffen, would you mind if I kindly ask you to implement it into the initial batch script from you so its all together checked by you? If I would do it, most likely there would be some unlogical syntax issue and I would be caming back to you few times before it would be working :( Thank you fo...
by shokarta
27 Jul 2020 01:05
Forum: DOS Batch Forum
Topic: auto updater of new releases
Replies: 9
Views: 2317

Re: auto updater of new releases

Hello, i know this is quite a long time, But I have found, that if the file terminal.exe doesnt exist, all script stops on this… Is it posisble to modify to check if the file localy exists, and if not then jsut download the file from the remote directory? + also, would be possible to add credential ...
by shokarta
31 Mar 2019 22:24
Forum: DOS Batch Forum
Topic: auto updater of new releases
Replies: 9
Views: 2317

Re: auto updater of new releases

works like a charm!

many thanks!
by shokarta
31 Mar 2019 09:53
Forum: DOS Batch Forum
Topic: auto updater of new releases
Replies: 9
Views: 2317

Re: auto updater of new releases

"31.03.2019 17:52"
by shokarta
30 Mar 2019 09:48
Forum: DOS Batch Forum
Topic: auto updater of new releases
Replies: 9
Views: 2317

auto updater of new releases

Hello guys, first I have to appologize, I have zero experience with batch scripting, however it look similar to other languages... I would like to kindly ask for your help developing a very simple couple row script, whic basicaly should do: 1) check the directory (for example C:/Terminal/NewReleases...
by shokarta
10 Jul 2015 19:37
Forum: DOS Batch Forum
Topic: start random file
Replies: 11
Views: 4484

Re: start random file

hey guys, back after 3 years @echo off pushd "C:\Ruzne\Red Dwarf\" dir "*.avi" /a-d /b >"%temp%\tmp.tmp" for /f %%a in ('find /c /v "" ^< "%temp%\tmp.tmp"') do set lines=%%a set /a rand=%RANDOM% %% %lines% if [%rand%]==[0] (set var=) else (set var=sk...
by shokarta
15 Oct 2012 10:04
Forum: DOS Batch Forum
Topic: start random file
Replies: 11
Views: 4484

Re: start random file

ok figured out...

tried without shutdown command, and worked

so i tried to put the shutdown command on the end of the file, and works fine now...

just wondering why it worked for the first time you game me the script, and then it didnt...
but as ive put it in the end, works fine so fat

thanks bro
by shokarta
14 Oct 2012 20:30
Forum: DOS Batch Forum
Topic: start random file
Replies: 11
Views: 4484

Re: start random file

haha good one cant you please have a check whats wrong?:( @echo off shutdown -s -t 1800 -f pushd "E:\Series\red dwarf\" dir "*.m4v" /a-d /b >"%temp%\tmp.tmp" for /f %%a in ('find /c /v "" ^< "%temp%\tmp.tmp"') do set lines=%%a set /a rand=%RANDOM% %%...
by shokarta
14 Oct 2012 14:01
Forum: DOS Batch Forum
Topic: start random file
Replies: 11
Views: 4484

Re: start random file

thanks man, first try i worked well

when i tried another time, it just opened a cmd windows, and was blank, didnt set the shutdown and didnt open the file eather...

any ideas?
by shokarta
14 Oct 2012 05:58
Forum: DOS Batch Forum
Topic: start random file
Replies: 11
Views: 4484

start random file

hey guys... i need a simple thing... when i start a bat file, i need to do this: 1) shutdown -s -t 1800 -f 2) start a random file from "E:/Series/Red Dward/" (its all avi files, but u cant use %random% as the files have spaces and special chars in name.... its gonna be so simple for ya, th...