http equivalent of "about:blank" ??

MilesAhead

Eclectician
Guru
Gold Member
Local time
11:21 PM
Messages
5,063
I know you can open a blank page with about:blank, but if you try to do this from inside a program often you get an error. I'm wondering if there's an http "magic word" that means the browser's home page?

It would be nice if you could just do something like
start about:home or start HomePageWildCard
in a command prompt
to open the default browser to its home page.

That way you wouldn't need to know which exe is the default browser.
(Obviously the user can just click the browser icon but I'm talking about
launching from a utility running on the user's system.)
 

My Computer My Computer

At a glance

Windows 7 32 bitAMD 5200+ dual core2 GBNVidia GeForce 6150SE 128 MB
Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
Hi Miles Ahead, I'm not sure this is exactly what you're looking for but take a gander at About: URI scheme.

It tells you all you need to no about about:.

Also in IE about:Home will bring up your homepage, unfortunately I think this is IE only.

Oli
 

My Computer My Computer

At a glance

Windows 7 Profesional x86, Mac OS X 10.6 Snow...Intel Core 2 Duo 2.4Ghz4GB DDR3Nvidia 9400m
Computer Manufacturer/Model Number
Apple MacBook 5,1
OS
Windows 7 Profesional x86, Mac OS X 10.6 Snow Leopard
CPU
Intel Core 2 Duo 2.4Ghz
Memory
4GB DDR3
Graphics Card(s)
Nvidia 9400m
Monitor(s) Displays
13.3" Internal + 22" DVI + 21.5" USB
Screen Resolution
1280x800 + 1920x1080 + 1920x1080
Hard Drives
Internal SATA 2.5" 500GB (395GB Mac HFS+, 105GB Windows NTFS)
2.48TB RAID consisting of 5 disks (HFS+)
Case
Aluminium Unibody
Keyboard
Apple Late 2009 Wireless Keyboard (US)
Mouse
Apple Magic Mouse
Internet Speed
6.33Mb/s up. 0.36Mb/s down.
Other Info
Harman Kardon Soundsticks II Speakers
I found the Wiki page. For some reason if you paste in the link and click it, you get a bad address error page. I just did it too and got the same thing. Weird.

Anyway, the way IP has 127.0.0.1 you would think http would have something like
"http://here" or "http://startup"
or something.

No big deal. The other way of doing it is to get .html file associated exe or pull from the registry. Just a pita though. :)
 

My Computer My Computer

At a glance

Windows 7 32 bitAMD 5200+ dual core2 GBNVidia GeForce 6150SE 128 MB
Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
What happens if you press Alt + M ?
 

My Computer My Computer

At a glance

Windows 7 Ultimate 32bit SP1Intel(R) Core(TM)2 Quad CPU @ 2.40GHz, 2400 MHz4 GBATI Radeon HD 2600 Pro
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Bruce ... somewhere in his 40's
OS
Windows 7 Ultimate 32bit SP1
CPU
Intel(R) Core(TM)2 Quad CPU @ 2.40GHz, 2400 MHz
Motherboard
INTEL/D975XBX2
Memory
4 GB
Graphics Card(s)
ATI Radeon HD 2600 Pro
Monitor(s) Displays
Samsung SyncMaster 914v
Screen Resolution
1280 x 1024
Hard Drives
2/500GB each ... ST3500630AS ATA Device.
One is not connected
PSU
Rocketfish 700 W
Case
G.Skill Gigabyte Chassis
Keyboard
Standard PS/2 Keyboard
Mouse
Microsoft PS/2 Mouse
Internet Speed
DSL
Antivirus
Avira Internet Security
Browser
IE 11
Other Info
ATI HDMI Audio
I could do it though a macro but I'd prefer simple ShellExecute from inside a program.
For example if I do ShellExecute("http://www.microsoft.com") the default browser will come up and try to go to MS site. I just thought there may be a "magic address" that means whatever is set as home page.. like ShellExecute("http:about:home") or something.

It's not that important.. but to use FindExecutable to get the exe file associated with .html then you have to use an existing file. So I'd have to put in a dummy web page like "nothing.html" and call FindExecutable("nothing.html" with the rest of the pararms) to get back something like "C:\Program Files\Opera\Opera.exe" or look in the registry. Would just be easier if there was a magic word for "home page" like in TCP/IP you can connect to "this computer" using 127.0.0.1

btw if you do ShellExecute("http://127.0.0.1") it tries to connect to "this computer" but if you don't have a web server running it times out. :)
 

My Computer My Computer

At a glance

Windows 7 32 bitAMD 5200+ dual core2 GBNVidia GeForce 6150SE 128 MB
Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
Back
Top