Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 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