- Home /
The question is answered, right answer was accepted
System.Diagnostics.Process.StandardInput not defined.
I recently tried creating a script for starting another process and communicating with it. It seemed to work fine and everything compiled, but unity's console complained giving the following error:
Assets/FTPUpload.cs(99,36): error CS1061: Type `System.Diagnostics.Process' does not contain a definition for `StandardInput' and no extension method `StandardInput' of type `System.Diagnostics.Process' could be found (are you missing a using directive or an assembly reference?)
Since I can easily locate StandardInput in the script, and it compiles fine, I'm stumped. And I would like to know if anyone else experience the same problem? Or know of a workaround / solution.
To recreate simply try this small script StandardInputTest.cs:
using UnityEngine;
using System.Collections;
using System.Diagnostics;
public class StandardInputTest : MonoBehaviour {
void Start()
{
Process test = new Process();
test.StandardInput.WriteLine();
}
}
Thanks in advance!
Answer by Graham-Dunnett · Jul 31, 2013 at 11:58 AM
Visit: http://docs.unity3d.com/412/Documentation/ScriptReference/MonoCompatibility.html
Wait for the page to load. It's very very very long.
Search for "Class: Process"
Observe a list of all the members that are supported.
Scroll down and see
StandardInput
has webplayer in red meaning that this member is not supported on webplayer.
Thanks a lot, that was exactly my problem! Automated SFTP upload, here I come!
Follow this Question
Related Questions
Process.GetProcessesByName(string str); not working 2 Answers
System.Diagnostics.Process consistently wrong 0 Answers
Writing to the standard output stream for another application to read 0 Answers
Cross-platform way to start new process? 1 Answer
Detect how much RAM is available? (IL2CPP) Process.GetCurrentProcess().WorkingSet64 returns zero 0 Answers