Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
13
Task/Hostname/FreeBASIC/hostname.basic
Normal file
13
Task/Hostname/FreeBASIC/hostname.basic
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
' FB 1.05.0 Win64
|
||||
|
||||
' On Windows 10, the command line utility HOSTNAME.EXE prints the 'hostname' to the console.
|
||||
' We can execute this remotely and read from its 'stdin' stream as follows:
|
||||
|
||||
Dim As String hostname
|
||||
Open Pipe "hostname" For Input As #1
|
||||
Input #1, hostname
|
||||
Close #1
|
||||
Print hostname
|
||||
Print
|
||||
Print "Press any key to quit"
|
||||
Sleep
|
||||
Loading…
Add table
Add a link
Reference in a new issue