USB Barkod Okuyucu

After connecting a usb barcode reader, I can print the incoming data to a clear text document, is there a chance to print it to a specific location?


I don't know what that means?


When the file is open, it writes the text, while I am closed, I want to keep every data write and after read somewhere.

I want it to write to a file, whether it's on the client computer or in the Orange Pi


Sorry don't know


Another Windows batch file example

When vhui64.exe is running as a service or in the gui in Windows...

vhui64.exe -t "LIST" -r "out.txt"
FOR /F "tokens=*" %%i IN (out.txt) DO @ECHO %%i

The for loop reads each line in the output (out.txt) and echos it to the script as an example. You can change the "ECHO" command to do something useful, for example to parse the "LIST" argument

Powershell Example

$pipeClient = new-object System.IO.Pipes.NamedPipeClientStream("vhclient")
$pipeClient.ReadMode = [System.IO.Pipes.PipeTransmissionMode]::Message
$writer = new-object System.IO.StreamWriter($pipeClient)
$writer.AutoFlush = $true
$reader = new-object System.IO.StreamReader($pipeClient)
$bytes = New-Object System.Collections.Generic.List[byte]
while ($reader.Peek() -ne -1)
$result = [System.Text.Encoding]::UTF8.GetString($bytes)


No I don't know anything about bar code scanners so no point asking here