Hi try
dir c:\temp | find "filename.ext" > c:\temp\filename.log >> is append, sometimes if the file does not exist The append fails, I have no >> idea why. also for some weird reason the space matters. The command will run >> fine from a DOS prompt but will fail if run from within Remedy. Also since >> you are uisng the /c option, you don't need the exit at The end. windows\system32 is always in the global path so you do not need to set that, also since you are running the bat file from within Remedy, it does not set the path anyway. Shafqat Ayaz >________________________________ > From: "Longwing, LJ CTR MDA/IC" <[email protected]> >To: [email protected] >Sent: Monday, October 8, 2012 2:28 PM >Subject: Re: Remedy AIE Question > >Phil, >I assume you have executed the batch file with the same command line without >issue? > >-----Original Message----- >From: Action Request System discussion list(ARSList) >[mailto:[email protected]] On Behalf Of Murnane, Phil >Sent: Monday, October 08, 2012 7:24 AM >To: [email protected] >Subject: Remedy AIE Question > >** > >Good Day, All: > > > >I'm having trouble with an AIE job and am hoping someone else may have run >into this issue. I'm trying to use the process| feature to set a field with >the return value of an external process. Really I'm not interested in the >return value, I just want the process to run. The process is >c:\windows\system32\cmd.exe /c "c:\temp\filename.bat" and the contents of the >.bat file are: > > > >set Path=C:\Windows\System32;%Path% > >dir c:\temp | find "filename.ext" >>c:\temp\filename.log > >exit > > > >That's it - pretty darn simple. So the data field mapping in AIE is >process|c:\windows\system32\cmd.exe /c "c:\temp\filename.bat" . The AIE >exchange runs successfully, but nothing is logged to the file. There's no >indication of any failure in the AIE debug logs. > > > >Any thoughts on what I could try? > > > >Thanks, > >--Phil > > > >-------------------- > >Phil Murnane, Principal Consultant > >Windward IT Solutions, Service Management Practice > >Email: [email protected] > >Mobile: +1-703-896-6435 > >Web: www.WindwardITS.com <http://www.windwardits.com/> > > > >_attend WWRUG12 www.wwrug.com ARSlist: "Where the Answers Are"_ > >_______________________________________________________________________________ >UNSUBSCRIBE or access ARSlist Archives at www.arslist.org >attend wwrug12 www.wwrug12.com ARSList: "Where the Answers Are" > > > _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org attend wwrug12 www.wwrug12.com ARSList: "Where the Answers Are"

