Re: Trying to write some data to a file using Active link runprocess

2007-10-28 Thread Angus Comber
That's great.

I am currently doing this:

%ComSpec% /c Echo DIAL $Caller ID$   C:\Documents and
Settings\%USERNAME%\Application Data\MyAppName\commandfile.txt

Which works.

I now ideally would like to make a file of the format:

CommandFiledatetimestamp.txt

Would this be possible?

I think some of the date time stamp characters may be illegal in a filename
(environment is the client so Windows).

Anyone know how to create a filename out of date or time stamp type
variables in Remedy - so I can put in the Run Process command line field?

Angus

- Original Message -
From: Schryver, Curt [EMAIL PROTECTED]
Newsgroups: public.remedy.arsystem.general
To: arslist@ARSLIST.ORG
Sent: Friday, October 26, 2007 5:33 PM
Subject: Re: Trying to write some data to a file using Active link
runprocess


You can do it, but you must understand that this method will write the
file to the user's machine.  The format I'm using is:

%ComSpec% /c Echo $MyRemedyField$  C:\mytextfile.txt

Good luck.

BTW, I'm tinkering with Escalations to see if I can write the file to
the server.


Curt A. Schryver
717-810-2109 tel
[EMAIL PROTECTED]

-Original Message-
From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Angus Comber
Sent: Friday, October 26, 2007 1:16 PM
To: arslist@ARSLIST.ORG
Subject: Trying to write some data to a file using Active link
runprocess

Hello

I would like to use an active link runprocess to write data to a text
file.
I have tried this sort of thing:

'echo $MyRemedyField$  C:\mytextfile.txt'

(and yes realise will have to use different path for a real system)

But I keep getting the error: The system cannot find the file specified.

And I am ensuring the file exists.

Can anyone help.  I basically want to write some text in a Remedy form
text
field out to a text file on a user clicking a button.

Angus


___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:Where
the Answers Are


___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:Where the
Answers Are

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:Where the 
Answers Are


Re: Trying to write some data to a file using Active link runprocess

2007-10-28 Thread Carlos Ungil
On 10/26/07, Schryver, Curt [EMAIL PROTECTED] wrote:
 You can do it, but you must understand that this method will write the
 file to the user's machine.

You can also run the process on the server, adding @@: before the command.

Carlos

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:Where the 
Answers Are


Re: Trying to write some data to a file using Active link runprocess

2007-10-26 Thread William Rentfrow
This should be doableI've done similar things.

It appears you are using Windows - you may want to try calling a batch
file with Run Process and passing the info from Remedy as parameters.

If your run process is something like this:

Myjob.bat $field1$ $field2$ etc.

...you reference the parameters in the batch file as %1, %2, etc...so in
the batch file you'd just put:

%1  c:\mytextfile.txt

There may be a little more to it than that but essentially it's doable. 

-Original Message-
From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Angus Comber
Sent: Friday, October 26, 2007 12:16 PM
To: arslist@ARSLIST.ORG
Subject: Trying to write some data to a file using Active link
runprocess

Hello

I would like to use an active link runprocess to write data to a text
file.
I have tried this sort of thing:

'echo $MyRemedyField$  C:\mytextfile.txt'

(and yes realise will have to use different path for a real system)

But I keep getting the error: The system cannot find the file specified.

And I am ensuring the file exists.

Can anyone help.  I basically want to write some text in a Remedy form
text field out to a text file on a user clicking a button.

Angus


___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:Where
the Answers Are

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:Where the 
Answers Are


Re: Trying to write some data to a file using Active link runprocess

2007-10-26 Thread Schryver, Curt
You can do it, but you must understand that this method will write the
file to the user's machine.  The format I'm using is:

%ComSpec% /c Echo $MyRemedyField$  C:\mytextfile.txt

Good luck.

BTW, I'm tinkering with Escalations to see if I can write the file to
the server. 


Curt A. Schryver
717-810-2109 tel
[EMAIL PROTECTED]

-Original Message-
From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Angus Comber
Sent: Friday, October 26, 2007 1:16 PM
To: arslist@ARSLIST.ORG
Subject: Trying to write some data to a file using Active link
runprocess

Hello

I would like to use an active link runprocess to write data to a text
file.
I have tried this sort of thing:

'echo $MyRemedyField$  C:\mytextfile.txt'

(and yes realise will have to use different path for a real system)

But I keep getting the error: The system cannot find the file specified.

And I am ensuring the file exists.

Can anyone help.  I basically want to write some text in a Remedy form
text
field out to a text file on a user clicking a button.

Angus


___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:Where
the Answers Are

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:Where the 
Answers Are


Trying to write some data to a file using Active link runprocess

2007-10-26 Thread Angus Comber
Hello

I would like to use an active link runprocess to write data to a text file.
I have tried this sort of thing:

'echo $MyRemedyField$  C:\mytextfile.txt'

(and yes realise will have to use different path for a real system)

But I keep getting the error: The system cannot find the file specified.

And I am ensuring the file exists.

Can anyone help.  I basically want to write some text in a Remedy form text
field out to a text file on a user clicking a button.

Angus

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:Where the 
Answers Are