We recommend switching to the latest versions of Edge, Firefox, Chrome or Safari. Using Internet Explorer will result in a loss of website functionality.
Our Support systems migrated on Saturday, May 21. We'll automatically forward you to the new location for this content.

MoveFile on windows network drive

Comments

4 comments

  • Avatar
    Infogix Support
    Originally posted by: ThomasT

    It seems like this forum is slowly dying..

    The strange thing is that I am renaming other files on the same network in other graphs, this is why I just cant figure out what is wrong with this one.

    Anyone?
    0
    Comment actions Permalink
  • Avatar
    Infogix Support
    Originally posted by: Tim Meagher

    Hi,

    I believe that the problem with moveFile is that when the LAE server is running on a non-windows platform it attempts to simply perform a rename operation instead of a move - which can run into issues on network drives.

    If this is the problem you are running into, you should be able to use a script equivalent to the following to do what you want (replacing "<new>" with the fully qualified filename for the new file you want to create, and "<original>" with the fully qualified file name of the file you want to move)

    touchFile("<new>")
    appendFile("<original>", "<new>")
    deleteFile("<original>")
    0
    Comment actions Permalink
  • Avatar
    Infogix Support
    Originally posted by: ThomasT

    Hi Tim.

    The server I am connected to is my local machine, which is a Windows 7 machine, so there are only Microsoft involved here.
    But anyway, the code is working!
    Thank you Tim :-)
    0
    Comment actions Permalink
  • Avatar
    Infogix Support
    Originally posted by: TSegall

    This forum is for LAE only and there is a new forum for Dataverse. The plan is to move this forum over to the new site in the next few months.

    Regards, Tim.
    0
    Comment actions Permalink

Please sign in to leave a comment.