Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
13
Task/Hostname/FreeBASIC/hostname.freebasic
Normal file
13
Task/Hostname/FreeBASIC/hostname.freebasic
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