Klainn
asked on
Script to run c:\windows\system32\ipconfig.exe and either save it to a txt file or paste it into a memo and reply to sender.
I have a Lotus Notes @formula that I believe needs to contain 3 parts, but possibly two. Here is what I have...
Step 1: Gather Information: @Command([Execute]; "C:\\WINDOWS\\SYSTEM32\\IP
Step 2: Place Information either into a memo as text or attach INFORMATION.TXT to memo
Step 3: Reply to sender.
I can get step 3, no problem. I can not get 1 to create the IPINFORMATION.TXT file with any combo of the commands, and needless to say I can not get anything to attach or input into a notes memo.
Anyone have any experience with this? It's for a helpdesk to send out as a stationery to people to gain required information and send back to the agent for noting reasons.
Thanks in advance.
It can be easily done with java code...
There will be no messy command popups too
~Hemanth
There will be no messy command popups too
~Hemanth
@Command([Execute]; "cmd"; "/C IPCONFIG.EXE /ALL > C:\\IPINFORMATION.TXT") works for me as the first paramater is the command (cmd.exe) and the second is it's paramaters including the redirection to a text file
Not very 'nice' way of doing it though really but if it does what is required...
Steve
Not very 'nice' way of doing it though really but if it does what is required...
Steve
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I am going to accept the answer from dragon-it, though I am not going to be able to use it due to limitations placed on our edition of lotus notes (custom config). Thank you all for your answers.
Thanks.... a whole 50 points :-)
Would you have preferred a split then?
:-D
:-D
Step 1: @Command([Execute]; "C:\\WINDOWS\\SYSTEM32\\IP
or
Step 0: Create a batch-file using script, that contains the command in step 1
Step 1: execute the batch file
or
Step 1: @Command([Execute]; "C:\\WINDOWS\CMD\CMD.EXE /C IPCONFIG.EXE /ALL > C:\\IPINFORMATION.TXT")