Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: deleting space from result  (Read 6327 times)

0 Members and 1 Guest are viewing this topic.

Salmon Trout

  • Guest
Re: deleting space from result
« Reply #15 on: April 07, 2019, 01:11:56 PM »
Powershell writes Unicode to files by default; if you add the switch -Encoding ASCII then you can forget all the other tricks (I think)

1| % {Get-Random -Minimum 2 -Maximum 222 } | Out-File -FilePath D:\number.txt -Encoding ASCII

It worked for me. SET /P read the value to %out% and TIMEOUT /T %out% read the value properly. Please try it.


Blisk

    Topic Starter


    Intermediate

    Thanked: 1
    • Experience: Familiar
    • OS: Windows 7
    Re: deleting space from result
    « Reply #16 on: April 07, 2019, 01:32:29 PM »
    yes you are right as usually
    ths works for me too.
    thank you again
    I didn't know I need to watch in charterset in files too