Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


nprinslo
2010-01-15T17:51:29Z
I need to log details such as where a file has come from, and where it has been copied/ftp'd to.

I gather I need to use the write file function, but it would be very useful to be able to use variables, so I can re-use the code for other jobs.

So, would like to write something like:

dd/mm/yyyy hh:mm:ss: [Jobname] File d:\Data\test.txt transferred to /data/transfer/test/test.txt (101 bytes in 0.55 secs)
Sponsor
Forum information
Support
2010-01-17T21:40:43Z
It is easy when you explore the Variables window. Here is one example:

{DATEFORMAT(dd/MM/yyy)} {JOB(Active|Name)}
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
nprinslo
2010-01-18T14:55:39Z
You say it is easy, but how do I write to log file that fila A has been copied to location B.

Easy enough to add in the variable you detail below, but there is no point writing this same result to the logfile everytime the job runs.

Looking at the variables, there does not "appear" to be one that gives you the content of what has actually happened in the task. So file a,b.c copied to location (easy enough to add the location, but how do you get the details of what was copied?
Support
2010-01-18T17:10:48Z
The output of the Copy files Task lists sourcepath and destination path. So, you can just use the Output Variable from that Task.

Here is some sample Output from the Copy files Task:

C:\Users\Henrik\Desktop\m7z\Clr7z.dll -> F:\test\Clr7z.dll OK
C:\Users\Henrik\Desktop\m7z\M7zTest.csproj -> F:\test\M7zTest.csproj OK
C:\Users\Henrik\Desktop\m7z\M7zTest.exe -> F:\test\M7zTest.exe OK
C:\Users\Henrik\Desktop\m7z\M7zTest.sln -> F:\test\M7zTest.sln OK
C:\Users\Henrik\Desktop\m7z\M7zTest.suo -> F:\test\M7zTest.suo OK
C:\Users\Henrik\Desktop\m7z\Program.cs -> F:\test\Program.cs OK
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
J Kruger
2010-03-29T18:04:48Z
Following on from NPrinslo's question - and Henrik's last answer (post number 4), I would like to ask for further clarification on writing the Copy file task / job to a log file.

The log file needs to contain, amongst other information, the source and destination directories plus the name of the file being transferred (unique every time.)

Quote:

The output of the Copy files Task lists sourcepath and destination path. So, you can just use the Output Variable from that Task.



Henrik (or other Support) Please could you tell me where the variable is that would list the output as you've described above? Ie: where do I find the Output Variable...? I'm new to VisualCron so thank you in advance for your patience!

Many thanks,
Judi
Support
2010-03-30T00:20:01Z
Currently, the Output Variable, as in the image below contains the text described in previous post. In the next version, you can also find copied files, with just source path or just destination path.

Support attached the following image(s):

Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
J Kruger
2010-03-30T12:04:52Z
Thanks Henrik, that was a great help. I was looking in the general variables, not the task specific ones which obviously makes sense (now that I know!).
nprinslo
2010-04-06T10:10:29Z
Hendrik,

When is the next version due that will:

"Currently, the Output Variable, as in the image below contains the text described in previous post. In the next version, you can also find copied files, with just source path or just destination path."

regards
Neville
Support
2010-04-06T15:43:38Z
Some day this week.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Support
2010-04-07T12:00:06Z
Checkout this version:

http://www.visualcron.co....aspx?g=posts&t=1158 

Also, please give us feedback regarding an idea of future development.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
nprinslo
2010-04-07T16:25:13Z
Hendrik,

Where do I find these variables in 5.5.6?

[FEATURE] Client/Server: Added Variables for files downloaded/uploaded for FTP Task
[FEATURE] Client/Server: Added Variables for files copied for Copy files Task

Or can you give me an example of how to use them?

Many thanks as always

Scroll to Top