Forum Discussion

Mrunal's avatar
Mrunal
Contributor
11 years ago
Solved

Is it possible to add Frompath and Topath from DB table variable in aqfilesystems.move method?

Hello,   I am trying to call path value from DbTable values. I read one article which says Path requires "string" as its value.    code:- aqFileSystem.MoveFile("C:\\TC", "C:\\TC\\Temp", false)) ...
  • joseph_michaud's avatar
    joseph_michaud
    11 years ago

    You probably want to do something like

     

      from = KeywordTests.Test1.Variables.DB.Value("A");
      to = "D:\\New folder\\Copy";
      aqFileSystem.CopyFile(from, to, false);

     

     If you've set up your DB to use the first row as the column name, then you'll need to use Value("Path") ,