Re: change drive on Windows

From: Kazuyoshi Furutaka <furutaka.kazuyoshi_at_jaea.go.jp>
Date: Thu, 01 Mar 2007 08:36:15 +0900 (JST)


Dear rooters and Valeri,

Thanks for your followup, Valeri...

From: "Fine, Valeri" <fine_at_bnl.gov>
Subject: RE: [ROOT] change drive on Windows Date: Wed, 28 Feb 2007 09:32:36 -0500

> What is your ROOT version?

I forgot to mention the version again.

From: Kazuyoshi Furutaka <furutaka_at_jb3.so-net.ne.jp> Subject: [ROOT] change drive on Windows
Date: Tue, 27 Feb 2007 22:58:27 +0900 (JST)

> (I'm using a copy of root_v5.15.02.win32gdk.msi
> on WinXp Home Edition version 2002 SP2)

From: "Fine, Valeri" <fine_at_bnl.gov>
Subject: RE: [ROOT] change drive on Windows Date: Wed, 28 Feb 2007 09:32:36 -0500

> 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]
> ________________________________

Yes, it does work for me and now I know how I should do from root/CINT shells.

What I'd like to know then is how I can change the current "drive" of TBrowsers to access files on different drives.
It seems to me that gSystem->cd() doesn't affect TSystemDirectory::workdir in TBrowser... Suppose I started root from a 'command prompt' whose current "drive" is c:. How can I access root files on d: "drive" from a TBrowser? Even after issueing gSystem->cd("d:\\"), I could only see files in the c: "drive".
(Yes, I know I can access files on d: by changing current drive to d: BEFORE STARTING ROOT.)

Yours,
Kazuyoshi

>
> 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 Thu Mar 01 2007 - 00:36:30 CET

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