You have to login in order to post a reply to this topic.

3 replies [Last post]
Danes33
User offline. Last seen 19 weeks 6 days ago. Offline
Joined: 07/07/2010
Posts: 3

Hi

I want to use commandoutput as filename, but the commandouput is not accepted as filename.

If I use DateTime action the same way it's not a problem. Why is that?

AttachmentSize
Hostname to filename.waj14 KB
D.M.Altizer
User offline. Last seen 1 year 11 weeks ago. Offline
Joined: 01/12/2010
Posts: 204
Re: Basic problem-filename

 Basically there are 2 problems here:

1) The %CommandOutput% variable contains an invisible new line character at the end so you will have to use the "Trim Text" action to remove the white space.

2) If you are using Windows 7 you do not have permissions to write to C:\ so you will either have to write to a different directory or you will have to make your job run as system user. If you are using WIndows XP fixing no.1 will fix the problem :D

__________________

==Dedicated Automation Solutions==

__________________

==Dedicated Automation Solutions==

Danes33
User offline. Last seen 19 weeks 6 days ago. Offline
Joined: 07/07/2010
Posts: 3
Re: Basic problem-filename

Thanks D.M.Altizer. That's a quick reply. And it works perfectly!!!!!!!!!!

I am using windows 7 and I have no problems writing to C:\.

D.M.Altizer
User offline. Last seen 1 year 11 weeks ago. Offline
Joined: 01/12/2010
Posts: 204
Re: Basic problem-filename

 That's odd! You must have some super-duper-ultra permissions! oO

Anyways glad that I helped! Enjoy :)

__________________

==Dedicated Automation Solutions==

__________________

==Dedicated Automation Solutions==