Skip to main content
Announcements
You can succeed best and quickest by helping others to succeed. Join the conversation.
cancel
Showing results for 
Search instead for 
Did you mean: 
denis115
Creator
Creator

execute

Hi!

Help me please!

I want to replace my log file from folder with qvw file into folder that will be blocked for users,.

I've tryied to use execute but when I write move *.qvw.log it doesnt work, what do I need to do to reach the result?

thank you!

6 Replies
marcus_sommer
MVP & Luminary
MVP & Luminary

denis115
Creator
Creator
Author

from  C:\Users\dcucuta\Desktop\log\test.qvw.log"; I need to replace into

         C:\Users\dcucuta\Desktop\log\a";
What do I need to replace in your script?

marcus_sommer
MVP & Luminary
MVP & Luminary

You would need to change LoadLogging into a:

sub CopyLogFile

    let vLogFile = '"' & DocumentName() & '.log"';

    let vLogPath = '"' & left(QvWorkPath, index(QvWorkPath, '\', -1)) & 'LoggingLoad\' & DocumentName() & '.log"';

    execute cmd.exe /C copy $(vLogFile) $(vLogPath);

    let vLogFile = null(); let vLogPath = null();

end sub

- Marcus

denis115
Creator
Creator
Author

and where wil go my log file?

If for you is not hard, where do I need to write the path where I want to save my log file?

marcus_sommer
MVP & Luminary
MVP & Luminary

The log will reside in a folder parallel to the qvw like:

...MainFolder\SubFolder\Applications\YourQVW.qvw

...MainFolder\SubFolder\LoggingLoad\YourQVW.qvw.log

but you could also choose each other exists folder like you want. Should this folder be also relative to the qvw or to something else you would need to build this path. but like you see within my example it's not very difficult with the system-variables, document-functions and a few string-functions like left/mid/index/subfield and so on - just try it out within the GUI, for example within a textbox.

- Marcus

denis115
Creator
Creator
Author

ok! It will take a time to try and understand all in your script,thank you