Search found 19 matches

by shokarta
23 May 2024 00:04
Forum: DOS Batch Forum
Topic: netsh Interface name store as variable
Replies: 10
Views: 30001

Re: netsh Interface name store as variable

you guys are the best :) working perfectly :) but maybe one more question to this... basicaly little different topic in same script... well basicaly after I determine this AdapterName, I am connecting my WiFi to different profile: @ECHO Waiting for connection to WiFi (MYNETWORK) @NETSH wlan connect ...
by shokarta
15 May 2024 23:08
Forum: DOS Batch Forum
Topic: netsh Interface name store as variable
Replies: 10
Views: 30001

Re: netsh Interface name store as variable

Hello, thank you for the input, actually it worked, however I assume as a workaround, because basicaly there are only two possible scenarios, this is my netsh interface show interface before running the script: Admin State State Type Interface Name ---------------------------------------------------...
by shokarta
14 May 2024 23:26
Forum: DOS Batch Forum
Topic: netsh Interface name store as variable
Replies: 10
Views: 30001

Re: netsh Interface name store as variable

hello, sorry but does not work... I tried to figure out myself for long time, but I cant :( so my: netsh interface show interface returns: Admin State State Type Interface Name ------------------------------------------------------------------------- Enabled Connected Dedicated Wi-Fi Disabled Discon...
by shokarta
02 Apr 2024 01:11
Forum: DOS Batch Forum
Topic: netsh Interface name store as variable
Replies: 10
Views: 30001

Re: netsh Interface name store as variable

Hello, can I kindly ask for one more modification? So from this, basicaly I see in my interfaces: Admin State State Type Interface Name ------------------------------------------------------------------------- Enabled Disconnected Dedicated Wi-Fi Enabled Connected Dedicated Ethernet 2 Enabled Connec...
by shokarta
13 Oct 2023 02:17
Forum: DOS Batch Forum
Topic: netsh Interface name store as variable
Replies: 10
Views: 30001

netsh Interface name store as variable

hello guys, so netsh interface show interface gives me this: Admin State State Type Interface Name ------------------------------------------------------------------------- Enabled Disconnected Dedicated Wi-Fi Enabled Connected Dedicated Ethernet 2 Enabled Disconnected Dedicated Ethernet and I am lo...
by shokarta
13 Oct 2023 02:09
Forum: DOS Batch Forum
Topic: variables as paths to run?
Replies: 2
Views: 14799

variables as paths to run?

hello guys.... so lets say i have this line i need to run: c:\Qt\6.6.0\mingw_64\bin\windeployqt6.exe --qmldir c:\Qt\Projects\Sources\game_test c:\Qt\Projects\Builds\build-game_test-Desktop_Qt_6_6_0_MinGW_64_bit-Release\appgame_test.exe --compiler-runtime so i was thinking of something like: set /p "...
by shokarta
31 Aug 2020 01:31
Forum: DOS Batch Forum
Topic: SerialPort copy string instead of file
Replies: 5
Views: 6970

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: 6970

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: 6970

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: 9099

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: 9099

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: 9099

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: 9099

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: 9099

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: 11565

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...