run a BATCH file after upload event server-side

2 posts, 0 answers
  1. zanekevin
    zanekevin avatar
    15 posts
    Member since:
    Oct 2012

    Posted 08 Mar 2011 Link to this post

    Has anyone been able to call or run a BAT file on the server-side?
    Maybe with in the  SaveChunkData, If  this.IsFinalFileRequest()   ?

    I need to Upload a CSV and on the IsFinalFileRequest to start a BAT file that will load my CSV using ORACLE SQL LOADER.
    Or I can just call SQLLDR.exe from the finalEvent and pass the params (filename) to the EXE.

    I tried this sample below and seems not to work in my ASHX Handler.

           ProcessStartInfo startInfo = new ProcessStartInfo();
           startInfo.FileName = "SQLLoader.bat";   
           startInfo.UseShellExecute = true;
           startInfo.WorkingDirectory = @"C:\";


  2. Alex Fidanov
    Alex Fidanov avatar
    637 posts

    Posted 11 Mar 2011 Link to this post

    Hello zanekevin,

    There should be no problem running a bat file or starting a process from the RadUploadHandler. I tried this on my end and it was working correctly. Do you get any exceptions when starting the process?
    Alex Fidanov
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Back to Top