RE: change drive on Windows

From: Fine, Valeri <fine_at_bnl.gov>
Date: Wed, 28 Feb 2007 09:32:36 -0500


What is your ROOT version? I checked with the recent version and it does work as expected;  

root [0] gSystem->WorkingDirectory()
(const char* 0x15d4688)"E:\\cygwin\\home\\fine\\work\\ROOT\\5.14a\\root\\qtExamples" root [1] gSystem->ChangeDirectory("c:")
(Bool_t)1
root [2] gSystem->WorkingDirectory()
(const char* 0x1b0fbd0)"C:\\"
root [3] gSystem->cd("e:")
(Bool_t)1
root [4] gSystem->WorkingDirectory()
(const char* 0x15d4688)"E:\\cygwin\\home\\fine\\work\\ROOT\\5.14a\\root\\qtExamples" root [5]


From: owner-roottalk_at_pcroot.cern.ch on behalf of Kazuyoshi Furutaka Sent: Wed 2/28/2007 7:17 AM
To: roottalk_at_pcroot.cern.ch
Subject: Re: [ROOT] change drive on Windows

Dear rooters,

From: Philippe Canal <pcanal_at_fnal.gov>
Subject: RE: [ROOT] change drive on Windows Date: Tue, 27 Feb 2007 11:06:27 -0600

> Simply do: gSystem->cd("d:\\");
>
> Cheers,
> Philippe.

Thanks, Philippe. It works.

Luca Boncagni <boncagni_at_frascati.enea.it> also kindly taught the command via private e-mail. Thanks Luca.

I have one more question.

How do we access files in different drives than the drive from which root shell was invoked, using TBrowser? By doing gSystem->cd("d:\\"), I can see files on the new drive from root/cint shell, but even after the command I could only see files on the old drive in TSystemDirectory::workdir.

Thanks in advance.

Yours,
Kazuyoshi

--
Kazuyoshi Furutaka
furutaka_at_jb3.so-net.ne.jp
Received on Wed Feb 28 2007 - 15:35:37 CET

This archive was generated by hypermail 2.2.0 : Thu Mar 01 2007 - 05:50:01 CET