I have Root 5.23/04 (22 Apr 2009) running on my Windows Vista64 laptop as a desktop icon. When I click on the desktop Root icon, a Root session pops up. In this instantiation .! pwd fails by saying “‘pwd’ is not recognized as an internal or external command, operable program or batch file.”
I can also get into Root from a Cygwin window >root and at the following root prompt the following occurs:
root [0] .! pwd
/home/root
root [1] .! cd bin
The system cannot find the path specified
(there really is a directory /home/root/bin so it should have gone into that bin directory)
So if ‘pwd’ is recognized in my Cygwin launched Root session but NOT in my desktop Root icon launched Root session, I am ok never using the desktop Root icon as a launch and from now on i will enter via Cygwin only. Ok fine.
But still the ‘cd’ command failed.
How do I control what directory on my Windows machine is the directory the Root session considers to be its “.” directory?
I would like to maintain any number of separate folders in Windows, where I will keep a small number of project specific files, like *.C code, and whatever the Root equivalent of the PAW *.kumac files are.
So in a familiar world I should simply be able to do something like this:
root [0] .! pwd
/home/root
root [1] .! cd project1
/home/root/project1
root [2] .L macro.C
root [3] macro();
So if there is an object creation sequence which can render this ‘.! cd xyz’ command operable to get into my xyz directory where macro.C lives and into which the input and output files should be active, please let me know
Alternatively, I could perhaps just add my xyz dir to my path. I see from executing a macro which I know does not exist an error msg which tells me what my path is now: .;c:\root/macros;
So there are two directories currently in my path, the “.” directory and the c:\root/macros directory. I do not know where the rootrc file lives in the c:\root\ tree (standard installation, I did not change anything under there) so I don’t know where this is set and hence where I can change how the default path is set.
If someone could let me know either how to make ‘cd’ function as expected, or let me know how to add xyz dir to my path, I would greatly appreciate the input and the learning experience