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?
| Attachment | Size |
|---|---|
| Hostname to filename.waj | 14 KB |
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?
| Attachment | Size |
|---|---|
| Hostname to filename.waj | 14 KB |
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:\.
That's odd! You must have some super-duper-ultra permissions! oO
Anyways glad that I helped! Enjoy :)
==Dedicated Automation Solutions==
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==