vl-file-systime doesn't return value I want

Discussion in 'AutoCAD' started by Reid M. Addis, Dec 15, 2004.

  1. 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:
     
    Reid M. Addis, Dec 15, 2004
    #1
  2. Reid M. Addis

    zeha Guest

    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
     
    zeha, Dec 20, 2004
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.