Windows

From 太極
Revision as of 01:25, 5 January 2013 by Brb (talk | contribs)
Jump to navigation Jump to search

Access cloud storage

Windows Power Shell

Windows 8

Keyboard shortcut.

  • Ctrl+C: charm bar
  • Ctrl+w: search

Find public IP address

Create a VB script text file "ip.cbs" with a content like

Option Explicit
Dim http : Set http = CreateObject( "MSXML2.ServerXmlHttp" )
http.Open "GET", "http://icanhazip.com", False
http.Send
Wscript.Echo http.responseText   'or do whatever you want with it
Set http = Nothing

Open a command line and run

cscript ip.vbs

The output will look like

C:\Users\mli>cscript ip.vbs
Microsoft (R) Windows Script Host Version 5.7
Copyright (C) Microsoft Corporation. All rights reserved.

2601:a:3780:5b:b856:6a09:3ea3:5e26