Hi,
How to call powershell script file from EventReceiver.
When item is added ,it will call power shell script from Event Receiver.I have tried with this below code but i cant find good result
public override void ItemAdding(SPItemEventProperties properties){
Process myProcess = new Process();
myProcess.StartInfo.UseShellExecute = true;
myProcess.StartInfo.FileName = @"F:\profileupdate.ps1";
myProcess.StartInfo.CreateNoWindow = true;
myProcess.Start();
}