Anarchosa Posted April 16, 2022 Share Posted April 16, 2022 virtualhere programında gelen veriyi txt yazdırmak için nasıl bir yol izleyebiliriz? https://www.virtualhere.com/client_api şurda bir örnek verilmi işin içinden çıkamadım yardımcı olablirmisiniz? Quote Link to comment Share on other sites More sharing options...
register Posted April 16, 2022 Share Posted April 16, 2022 (edited) slma misal cmd ekranı diyelim (kendi sayfasından) vhui64.exe -t "LIST" -r "out.txt" FOR /F "tokens=*" %%i IN (out.txt) DO @ECHO %%i for döngüsü çıktıdaki (out.txt) her satırı okur ve örnek olarak bunu komut dosyasına yansıtır. Örneğin "LIST" argümanını ayrıştırmak gibi faydalı bir şey yapmak için "ECHO" komutunu değiştirebilirsiniz. cmd örnek (3kur.bat'a cmd /c echo'dan sonrakileri yazar) cmd /c echo @echo off >> 3kur.bat cmd /c echo title 3kur >> 3kur.bat cmd /c echo color 3a >> 3kur.bat cmd /c echo echo %date%%time% >> 3kur.bat youtube örnekler VirtualHere ile ilgili İnternette Çeşitli Makaleler Please register to see this content. Edited April 16, 2022 by register Quote Link to comment Share on other sites More sharing options...
Anarchosa Posted April 17, 2022 Author Share Posted April 17, 2022 Deneyip sonucu yazacağım Quote Link to comment Share on other sites More sharing options...
Anarchosa Posted April 17, 2022 Author Share Posted April 17, 2022 Şimdi; böyle bir bat dosyası oluşturdum isminide 3kur.bat yaptım @echo off >> 3kur.bat title 3kur >> 3kur.bat color 3a >> 3kur.bat echo %date%%time% >> 3kur.bat Bu komutu nerde yapacağım kafam karıştı biraz Alıntı vhui64.exe -t "LIST" -r "out.txt" FOR /F "tokens=*" %%i IN (out.txt) DO @ECHO %%i Quote Link to comment Share on other sites More sharing options...
Anarchosa Posted April 17, 2022 Author Share Posted April 17, 2022 register, 11 saat önce yazdı: slma misal cmd ekranı diyelim (kendi sayfasından) vhui64.exe -t "LIST" -r "out.txt" FOR /F "tokens=*" %%i IN (out.txt) DO @ECHO %%i for döngüsü çıktıdaki (out.txt) her satırı okur ve örnek olarak bunu komut dosyasına yansıtır. Örneğin "LIST" argümanını ayrıştırmak gibi faydalı bir şey yapmak için "ECHO" komutunu değiştirebilirsiniz. cmd örnek (3kur.bat'a cmd /c echo'dan sonrakileri yazar) cmd /c echo @echo off >> 3kur.bat cmd /c echo title 3kur >> 3kur.bat cmd /c echo color 3a >> 3kur.bat cmd /c echo echo %date%%time% >> 3kur.bat youtube örnekler VirtualHere ile ilgili İnternette Çeşitli Makaleler Please register to see this content. Dosya açıkken metni yazıyor, ben kapalıyken her veriyi okuyup sonra herhangi bir yerde saklı tutmak tutmak istiyorum. İstemci bilgisayarda veya Orange Pi'de olsun, bunu bir yerde tutmak istiyorum amacım o doğru anladık değilmi birbirimizi. Quote Link to comment Share on other sites More sharing options...
register Posted April 17, 2022 Share Posted April 17, 2022 (edited) slma misal vhui32.exe client indirdim yanına 1.bat dosya oluşturdum. 1.bat içine aşağıdaki komutları yazdım vhui32.exe -t "LIST" -r "out.txt" takılı cihazların listesini "out.txt" yazar vhui64.exe -t "LIST" takılı cihazları listeler vhui64.exe -t "AUTO USE HUB,readynas:7575" takılı cihazı otomatik kullanmak için şu denenebilir vhui64.exe -t "AUTO USE HUB,readynas:7575" -r "out.txt" readynas:7575 yerine barkod okuyucunun "LIST"'e görünen adı yazılır 2.bat dosya oluşturdum. 2.bat içine aşağıdaki komutları yazdım FOR /F "tokens=*" %%i IN (out.txt) DO @ECHO %%i "out.txt" oluşturdum 2.bat çalıştırdım "out.txt" içindekileri ekrana yazar @ECHO silince 2.bat çalıştırdım "out.txt" içindekileri cmd ekranında sırayla uygular FOR /F "tokens=*" %%i IN (out.txt) DO %%i ********************************************* slma anladığım kadarıyla 1 işletme var market, fırın, bakkal, kütüphane vs. 2 muhasebe kayıt gelir/gider veya gelen mal/giden mal (stok görme) misal Spoiler 3 barkod okuyucu alternatif 1 telefonu barkod okuyucu olarak kullanmak alternatif 2 pc'deki webcam, kamerayı kullanmak Please register to see this content. Edited April 17, 2022 by register Quote Link to comment Share on other sites More sharing options...
Anarchosa Posted April 17, 2022 Author Share Posted April 17, 2022 1.bat dosyası içini şöyle yaptım Alıntı vhui64.exe -t "AUTO USE HUB,readynas:7575" -r "out.txt" vhui64.exe -t "AUTO USE HUB,readynas:7575" 2.bat dosyası içeriğini Alıntı FOR /F "tokens=*" %%i IN (out.txt) DO @ECHO %%i "out.txt" vhui64.exe uygulamasını çalıştırıyorum barkod okutuyorum out.txt içine yazmıyor Quote Link to comment Share on other sites More sharing options...
Anarchosa Posted April 17, 2022 Author Share Posted April 17, 2022 ben uygulamayı çalıştırdıktan sonra otomatik olarak oktulanları txt yazdırmak istiyorum anlaşamadık heralde Quote Link to comment Share on other sites More sharing options...
register Posted April 17, 2022 Share Posted April 17, 2022 slma Virtualhere alternatif denenebilir Spoiler Please register to see this content. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.