locked
How to save pathname of client file RRS feed

  • Question

  • User248267340 posted

    My boss asked if I could write something that would navigate a client's PC for a text file, upload it to the IIS server, do my magic, and then replace the file on the client side. (He does this frequently in PHP, but I'm using ASP.NET.)

    I've coded everything except how to maintain the client pathname. I know the FileUpload class doesn't retain the client's file location for obvious reasons, so should I learn Javascript for this?

    If I had to, I could write a Windows Form executable in C#, but I'd like to avoid that if possible. Browser-based would be best, if this can be done.

    What do you think?

    Saturday, May 1, 2021 12:19 AM

Answers

  • User475983607 posted

    My boss asked if I could write something that would navigate a client's PC for a text file, upload it to the IIS server, do my magic, and then replace the file on the client side. (He does this frequently in PHP, but I'm using ASP.NET.)

    This is not possible in PHP or ASP.NET.  

    If I had to, I could write a Windows Form executable in C#, but I'd like to avoid that if possible. Browser-based would be best, if this can be done.

    Writing a Windows application and installing the app on the client PC  is the only way.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, May 1, 2021 10:28 AM

All replies

  • User475983607 posted

    My boss asked if I could write something that would navigate a client's PC for a text file, upload it to the IIS server, do my magic, and then replace the file on the client side. (He does this frequently in PHP, but I'm using ASP.NET.)

    This is not possible in PHP or ASP.NET.  

    If I had to, I could write a Windows Form executable in C#, but I'd like to avoid that if possible. Browser-based would be best, if this can be done.

    Writing a Windows application and installing the app on the client PC  is the only way.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, May 1, 2021 10:28 AM
  • User248267340 posted

    Thanks for your input. I'll double check with my boss to see exactly what he does.

    Monday, May 3, 2021 3:54 PM