RE: Cannot find macro on windows, was: Re: TChain

From: Fine, Valeri <fine_at_bnl.gov>
Date: Tue, 22 Dec 2009 12:39:59 -0500


> Turns out that Windows 7 has the extension
> of the files turned off by default.

"By default" the Windows File Explorer doesn't show the file extension "strings". It shows the associated application icon only.

In my mind, it is not a Windows-7 new feature. This was always the case for all Windows versions.

Best Regards

                         Valeri Fine


Brookhaven National Laboratory
Upton, NY 11973, USA
Phone: +1 631 344 7806
Fax: +1 631 344 4206
E-mail: fine_at_bnl.gov

> -----Original Message-----
> From: owner-roottalk_at_root.cern.ch [mailto:owner-roottalk_at_root.cern.ch]
On
> Behalf Of Bertrand Bellenot
> Sent: Friday, December 18, 2009 2:55 AM
> To: Bloom, Elliott; Axel Naumann; Nick van Eijndhoven
> Cc: roottalk_at_lxbuild091.cern.ch
> Subject: RE: Cannot find macro on windows, was: Re: [ROOT] TChain
>
> Hi Elliott,
>
> OK, glad to know it is solved.
> I hate to not see files extensions in the explorer, but the icon
should
> look different anyway for text files and for c/c++ source files.
> And working with the command line is the best way to see and control
> what you do ;)
>
> Cheers, Bertrand.
>
> -----Original Message-----
> From: Bloom, Elliott [mailto:elliott_at_slac.stanford.edu]
> Sent: Friday, December 18, 2009 02:37
> To: Bertrand Bellenot; Axel Naumann; Nick van Eijndhoven
> Cc: roottalk_at_lxbuild091.cern.ch
> Subject: RE: Cannot find macro on windows, was: Re: [ROOT] TChain
>
> Hi Bertrand,
> Indeed it was weird. Turns out that Windows 7 has the extension of the
> files turned off by default. What I thought was HelloWorld.C, was
> actually saved as HelloWorld.C.txt. I changed the Windows default to
> show all file extensions and now things are not weird anymore (at
least
> until the next issue comes up).
> Thanks for your inputs.
> Best,
> Elliott
>
> -----Original Message-----
> From: Bertrand Bellenot [mailto:Bertrand.Bellenot_at_cern.ch]
> Sent: Wednesday, December 16, 2009 11:48 PM
> To: Bloom, Elliott; Axel Naumann; Nick van Eijndhoven
> Cc: roottalk_at_lxbuild091.cern.ch
> Subject: RE: Cannot find macro on windows, was: Re: [ROOT] TChain
>
> Hi Elliott,
>
> This is weird.. You said " I was able to run the benchmark OK "
> Does this mean that $ROOTSYS/tutorials/benchmarks.C is working?
> Is Root working with macros in $ROOTSYS/tutorials/* ?
> If it is the case, could you provide the macro which is not working,
and
> the way you execute it (the exact command you type)?
>
> Cheers, Bertrand.
>
> -----Original Message-----
> From: owner-roottalk_at_root.cern.ch [mailto:owner-roottalk_at_root.cern.ch]
> On Behalf Of Bloom, Elliott
> Sent: Thursday, December 17, 2009 02:22
> To: Axel Naumann; Nick van Eijndhoven
> Cc: roottalk_at_lxbuild091.cern.ch
> Subject: RE: Cannot find macro on windows, was: Re: [ROOT] TChain
>
> Hi Alex and Nick,
> Sorry, but the suggestions you made were based on my sloppy email
> typing. It really is c:\root\macros, and there are no spaces in my
> environmental variables. Any other suggestions?
> Thanks,
> Elliott
>
> -----Original Message-----
> From: Axel Naumann [mailto:Axel.Naumann_at_cern.ch]
> Sent: Wednesday, December 16, 2009 2:01 PM
> To: Nick van Eijndhoven
> Cc: Bloom, Elliott; roottalk_at_lxbuild091.cern.ch
> Subject: Cannot find macro on windows, was: Re: [ROOT] TChain
>
> Hi,
>
> are your TEMP / TMP variables' values really starting with a space?
They
> shouldn't! :-)
>
> Can you actually read the file? Does a simple
> .x HelloWorld.C
> work, with HelloWorld.C wherever you started ROOT? If it doesn't, does
> .! type HelloWorld.C
> show the content of the file?
>
> Cheers, Axel.
>
> On 2009-12-16 22:05, Nick van Eijndhoven wrote:
> > Hi Elliott,
> > Maybe you have to update your .rootrc file in your home directory
> > to specify the paths where to look for the macros.
> >
> > When you tried to circumvent the problem by putting your macro in
> > another directory, you tried c:\root\macro whereas the error message
> > seems to indicate it should be c:\root\macros
> > So, trying it out with c:\root\macros should work to my opinion,
> otherwise
> > there is something else which goes wrong.
> >
> > Just my 2 (euro) cents,
> > Nick.
> >
> > On Wed, Dec 16, 2009 at 9:33 PM, Bloom, Elliott
> > <elliott_at_slac.stanford.edu <mailto:elliott_at_slac.stanford.edu>>
wrote:
> >
> > Dear Root Talkers,
> > I am trying to get Root V5.24 running on Windows 7 Ultimate.
> > ROOT installed OK and I was able to run the benchmark OK. My
> machine
> > performed well. However, when trying to execute a script, called
> > HelloWorld.C, I get the message:
> > " Error in <TApplication::ExecuteFile>: macro HelloWorld.C not
> found in
> > path .;C:\root/macros;"
> >
> > I have set up the Windows 7 environmental variables with this
> template:
> >
> > ROOTSYS=c:\root
> > HOME=c:\
> > PATH=%ROOTSYS%\bin;%ROOTSYS%\lib;%PATH%;%HOME%
> > TEMP= c:\Temp
> > TMPDIR= c:\Temp
> >
> > I have tried putting the HelloWorld.C file in c:\root\macro, and
> in
> > c:\root. I get the same error.
> > Any ideas?
> >
> > Thanks,
> > Elliott Bloom
> >
> >
> >
> >
> >
> > --
> > Nick van Eijndhoven
> > Professor of Physics
> > Vrije Universiteit Brussel (VUB-ELEM)
> > Inter-university Institute for High Energies (IIHE)
> > Pleinlaan 2, B-1050 Brussel, Belgium
> > --
> > Office : 0G-122 tel: +32.(0)2.629.3212 gsm: +32.(0)488.074166
> > Secr. : 1G-006 tel: +32.(0)2.629.3203 fax : +32.(0)2.629.3816
> > Email : nickve.nl <http://nickve.nl>@gmail.com <http://gmail.com>
> > Skype: nickve.nl <http://nickve.nl> Gsm-NL: +31.(0)6.40181589
> > Web : http://w3.iihe.ac.be http://sites.google.com/site/nickveweb
> >
> > "In the beginning there was nothing, which exploded".
Received on Tue Dec 22 2009 - 18:40:06 CET

This archive was generated by hypermail 2.2.0 : Wed Dec 23 2009 - 23:50:02 CET