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
.
I don't know what that means?
When the file is open, it
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
https://i.hizliresim.com
https://i.hizliresim.com/6wbf6k9.png
.
Sorry don't know
do you under stand me ?
do you under stand me ?
Another Windows batch file
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.Connect()
$pipeClient.ReadMode = [System.IO.Pipes.PipeTransmissionMode]::Message
$writer = new-object System.IO.StreamWriter($pipeClient)
$writer.AutoFlush = $true
$writer.Write("LIST")
$reader = new-object System.IO.StreamReader($pipeClient)
$bytes = New-Object System.Collections.Generic.List[byte]
while ($reader.Peek() -ne -1)
{
$bytes.Add($reader.Read())
}
$result = [System.Text.Encoding]::UTF8.GetString($bytes)
does this code work
does this code work
.
No I don't know anything about bar code scanners so no point asking here