Jump to content

Recommended Posts

Posted

Hi,

I wrote a script which does some tests and after that it makes an archive and moves this archive to a server by ftp connection. To create the zip archive I use 7z.exe using this instruction:

RunWait("7z.exe a " & $source & "\" & $s_LocalFile & " "  & $logs & " " & $config)

When I run my script from remote computer it works perfectly, but when I try to run it from jenkins the script doesn't make any archive file. I check everything many times but I can't figure it out why it doesn't work. Do you have any suggestions?

Posted

Hi,

Have you tried with quotes for the parameters?

Something like:

RunWait('7z.exe a "' & $source & "\" & $s_LocalFile & '" "' & $logs & '" "' & $config & '"')
Br, FireFox.
Posted

Right now I use an account called Test which is in the administrator group, so it has admin rights. I'll try to log on as Windows Administrator, but I suppose it makes no difference.

Posted

Thanks for your help. I solved the problem. I run my script in other one by Run() comand and I have had to change it to RunWait().

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...