[R] Finding a folder at the root level of an unknown drive
Dennis Fisher
fisher at plessthan.com
Sat Jun 6 15:19:17 CEST 2009
Colleagues,
R 2.9.0
Windows XP
Task is as follows:
A folder FOLDERNAME exists at the root level of some drive, e.g., E:
\FOLDERNAME
I want to search all possible drives to find the location of this
folder but I don't know what drives exist or are mounted.
The command:
dir(path="C:/", pattern=FOLDERNAME)
happens to be successful.
However, the command:
dir(path="C:/", pattern=FOLDERNAME)
results is a pop-up message:
"There is no disk in the drive. Please insert a disk into drive D:"
Can I avoid the pop-up message? i.e., can I execute a command that
silently reports only successes?
Thanks in advance.
Dennis
Dennis Fisher MD
P < (The "P Less Than" Company)
Phone: 1-866-PLessThan (1-866-753-7784)
Fax: 1-415-564-2220
www.PLessThan.com
More information about the R-help
mailing list