Hi all,
I’m a Ruby newbie so this is probably not the most challenging question
on the net, but, here it goes.
How can I open a filename with a space in it?
It concerns an Excel file.
Hi all,
I’m a Ruby newbie so this is probably not the most challenging question
on the net, but, here it goes.
How can I open a filename with a space in it?
It concerns an Excel file.
Datum: Mon, 26 Nov 2007 17:31:30 +0900
Von: Giel Raijmakers <giel@degekste.com>
An: ruby-talk@ruby-lang.org
Betreff: opening filename with a space in it
Hi all,
I’m a Ruby newbie so this is probably not the most challenging question
on the net, but, here it goes.
How can I open a filename with a space in it?
It concerns an Excel file.
Dear Giel,
welcome to Ruby - I am sure you'll enjoy it :).
I vaguely recall that I also had the problem you write about and
could solve it by substituting
an underscore for the space, thus:
# Nop, doesn't work either.
# system('start excel c:\\temp\\"open it.xls"')
···
From: Giel Raijmakers [mailto:giel@degekste.com]
#
# Quotes around the entire path+filename doest work.
# system('start "excel c:\\temp\\open it.xls"')
# Thanks for the "push" in the right direction!
you may quote the pathname only and may use single slash