I'm trying to compare the dates of two files: (setq user (getenv "UserProfile")) (setq ProfilePath (strcat user "\\Application Data\\Autodesk\\ADT2005\\enu\\Support\\Profiles\\gaadt-2005\\Profile.aws")) (setq origfile (vl-file-systime ProfilePath) newfile (vl-file-systime "J:\\CAD\\ADT2005\\Profiles\\gaadt-2005\\profile.aws") ) The varaible USER seems correct, as does ProfilePath. Yet the (setq origfile (vl-file-systime ProfilePath)) function returns NIL, while the (setq newfile (vl-file-systime "J:\\CAD\\ADT2005\\Profiles\\gaadt-2005\\profile.aws")) returns the proper info? I'm then going to use this as follows: (if (/= origfile newfile) (vl-file-copy "J:/CAD/ADT2005/Profiles/gaadt-2005/profile.aws" Profilepath) ) Thoughts? -- Regards, --------------- Reid M. Addis Registered Architect Architectural Applications Specialist Granary Associates 411 North 20th Street Philadelphia, PA 19130 Ph. 215-665-7056 email:
maybe this (vl-file-systime (strcat (getvar "ROAMABLEROOTPREFIX") "\\Support\\Profiles\\gaadt-2005\\Profile.aws")) I removed the space before filename 'profile.aws' and i use the variable "ROAMABLEROOTPREFIX" Good luck