Rev 49612 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File src/library/base/man/windows/shell.exec.Rd% Part of the R package, http://www.R-project.org% Copyright 1995-2008 R Core Development Team% Distributed under GPL 2 or later\name{shell.exec}\alias{shell.exec}\title{Open a File or URL using Windows File Associations}\usage{shell.exec(file)}\arguments{\item{file}{file or URL to be opened.}}\description{Opens the specified file or URL using the application specified in theWindows file associations.}\details{It is likely that \code{file} needs to be a complete path, e.g.\file{"c:/R/results.html"} or \file{"c:\\R\\results.html"} as mostapplications interpret files relative to \emph{their} workingdirectory.Encoded \samp{file://} URLs are not usually accepted.}\value{No value, but informative error messages will be given if theoperation fails.}\author{B. D. Ripley}\seealso{\code{\link{system}}, \code{\link{shell}}}\examples{\dontrun{## the space should not be encoded hereshell.exec("C:\\\\Program Files\\\\BreezeSys\\\\BreezeBrowser\\\\Breezebrowser.htm")shell.exec("C:/Program Files/BreezeSys/BreezeBrowser/Breezebrowser.htm")shell.exec("file://C:/Program Files/BreezeSys/BreezeBrowser/Breezebrowser.htm")}}\keyword{utilities}