Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Guys,
I am trying to give my own path for "Generate Logfile" Properties.
Is this possible or not? By default It is saving on path where my .QVW file is located
If you run such thing in load script statment you must use additional rights. Some times it's bad for administrators. This quest can be solved in macro:
1. Trigger on end of reload in self-application, that run macro:
Sub RunCMDComand
CMDCommand = ActiveDocument.Variables("RunCMD").GetContent.String
set objShell = CreateObject("WScript.Shell")
objShell.run CMDCommand,0,true
end sub
2. Make variable RunCMD like this:
='CMD /C MOVE ' & SubField(DocumentPath(), '.', 1) & '*.log ' & Replace(DocumentPath(), DocumentName(), 'Log')
3. Be alerted that you MUST CREATE FOLDER "Log" in the folder that .QVW is in.
Macro would run after App is reloaded in full-client app either by server.