Search found 15 matches
- 13 Oct 2023 02:17
- Forum: DOS Batch Forum
- Topic: netsh Interface name store as variable
- Replies: 1
- Views: 10474
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...
- 13 Oct 2023 02:09
- Forum: DOS Batch Forum
- Topic: variables as paths to run?
- Replies: 2
- Views: 12163
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 "...
- 31 Aug 2020 01:31
- Forum: DOS Batch Forum
- Topic: SerialPort copy string instead of file
- Replies: 5
- Views: 5285
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...
- 31 Aug 2020 00:59
- Forum: DOS Batch Forum
- Topic: SerialPort copy string instead of file
- Replies: 5
- Views: 5285
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...
- 28 Aug 2020 05:05
- Forum: DOS Batch Forum
- Topic: SerialPort copy string instead of file
- Replies: 5
- Views: 5285
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...
- 20 Aug 2020 00:09
- Forum: DOS Batch Forum
- Topic: auto updater of new releases
- Replies: 9
- Views: 7251
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...
- 27 Jul 2020 01:05
- Forum: DOS Batch Forum
- Topic: auto updater of new releases
- Replies: 9
- Views: 7251
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 ...
- 31 Mar 2019 22:24
- Forum: DOS Batch Forum
- Topic: auto updater of new releases
- Replies: 9
- Views: 7251
Re: auto updater of new releases
works like a charm!
many thanks!
many thanks!
- 31 Mar 2019 09:53
- Forum: DOS Batch Forum
- Topic: auto updater of new releases
- Replies: 9
- Views: 7251
Re: auto updater of new releases
"31.03.2019 17:52"
- 30 Mar 2019 09:48
- Forum: DOS Batch Forum
- Topic: auto updater of new releases
- Replies: 9
- Views: 7251
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...
- 10 Jul 2015 19:37
- Forum: DOS Batch Forum
- Topic: start random file
- Replies: 11
- Views: 9210
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...
- 15 Oct 2012 10:04
- Forum: DOS Batch Forum
- Topic: start random file
- Replies: 11
- Views: 9210
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
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
- 14 Oct 2012 20:30
- Forum: DOS Batch Forum
- Topic: start random file
- Replies: 11
- Views: 9210
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% %%...
- 14 Oct 2012 14:01
- Forum: DOS Batch Forum
- Topic: start random file
- Replies: 11
- Views: 9210
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?
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?
- 14 Oct 2012 05:58
- Forum: DOS Batch Forum
- Topic: start random file
- Replies: 11
- Views: 9210
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...