Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. File upload using batch file in asp.net

File upload using batch file in asp.net

Scheduled Pinned Locked Moved ASP.NET
csharpasp-net
11 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    monu nair
    wrote on last edited by
    #1

    i want to upload a file using a batch file and check the upload staus from asp.net code. please suggest me the proper command line argument in batch file.

    mannu

    C 2 Replies Last reply
    0
    • M monu nair

      i want to upload a file using a batch file and check the upload staus from asp.net code. please suggest me the proper command line argument in batch file.

      mannu

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      This is idiotic. You obviously have no idea what you're doing. I told you this in the C# forum. Your 'ASP.NET' code runs on the server, by definition. No client side code can run batch files OR upload files. Only a file selection control, with the user selecting files, can do that.

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      M 2 Replies Last reply
      0
      • C Christian Graus

        This is idiotic. You obviously have no idea what you're doing. I told you this in the C# forum. Your 'ASP.NET' code runs on the server, by definition. No client side code can run batch files OR upload files. Only a file selection control, with the user selecting files, can do that.

        Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

        M Offline
        M Offline
        monu nair
        wrote on last edited by
        #3

        i have already written a code in c# to call a batch file and in batch file i written the code to transmit the file. Even i got success to pass parameter to batch file from c# code . But the problem is that i am not able to do error handling with it means i dont have idea if the batch file not able to transmit the file then how to handle the error or how i wiil get the response.

        mannu

        C 1 Reply Last reply
        0
        • C Christian Graus

          This is idiotic. You obviously have no idea what you're doing. I told you this in the C# forum. Your 'ASP.NET' code runs on the server, by definition. No client side code can run batch files OR upload files. Only a file selection control, with the user selecting files, can do that.

          Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

          M Offline
          M Offline
          monu nair
          wrote on last edited by
          #4

          i think you are not familiar with exe or com objects.

          mannu

          C 1 Reply Last reply
          0
          • M monu nair

            i have already written a code in c# to call a batch file and in batch file i written the code to transmit the file. Even i got success to pass parameter to batch file from c# code . But the problem is that i am not able to do error handling with it means i dont have idea if the batch file not able to transmit the file then how to handle the error or how i wiil get the response.

            mannu

            C Offline
            C Offline
            Christian Graus
            wrote on last edited by
            #5

            MB_1981 wrote:

            i have already written a code in c# to call a batch file and in batch file i written the code to transmit the file. Even i got success to pass parameter to batch file from c# code .

            Sounds great. But, what does that have to do with ASP.NET ? I mean, your C# code is not going to run on the client, nor is your batch file going to be on the client. Sounds to me like you're not smart enough to realise that your dev machine is both client and server, so you can write stuff that works there, but won't work when someone is browsing the web and looking at your site.

            Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

            M 1 Reply Last reply
            0
            • C Christian Graus

              MB_1981 wrote:

              i have already written a code in c# to call a batch file and in batch file i written the code to transmit the file. Even i got success to pass parameter to batch file from c# code .

              Sounds great. But, what does that have to do with ASP.NET ? I mean, your C# code is not going to run on the client, nor is your batch file going to be on the client. Sounds to me like you're not smart enough to realise that your dev machine is both client and server, so you can write stuff that works there, but won't work when someone is browsing the web and looking at your site.

              Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

              M Offline
              M Offline
              monu nair
              wrote on last edited by
              #6

              there is no server side or client side concept with Executing batch file.

              mannu

              C 1 Reply Last reply
              0
              • M monu nair

                i think you are not familiar with exe or com objects.

                mannu

                C Offline
                C Offline
                Christian Graus
                wrote on last edited by
                #7

                MB_1981 wrote:

                i think you are not familiar with exe or com objects.

                ROTFL !!!! Well, if you write an ActiveX control, and embed it in your page, then your only issue is security settings in the browser. At this point, your question has NOTHING to do with ASP.NET, because your ActiveX control ( which only works in IE ) is embedded in the aspx, and has nothing to do with any ASP.NET code. However, I'm not sure how an exe comes into it. I can promise you, I know what an exe is, I've written more than a few. I just understand how web development works, too.

                Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

                1 Reply Last reply
                0
                • M monu nair

                  there is no server side or client side concept with Executing batch file.

                  mannu

                  C Offline
                  C Offline
                  Christian Graus
                  wrote on last edited by
                  #8

                  OK, so now I just think you're an idiot. You said you had an ASP.NET question in the C# forum, and you got told to come here. Now you say that your question has nothing to do with a server or client side concept ? Are you totally confused as to what ASP.NET is, and just had a .NET question ? Or are you still confused about what a web app can and can't do on the client side ?

                  Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

                  M 1 Reply Last reply
                  0
                  • C Christian Graus

                    OK, so now I just think you're an idiot. You said you had an ASP.NET question in the C# forum, and you got told to come here. Now you say that your question has nothing to do with a server or client side concept ? Are you totally confused as to what ASP.NET is, and just had a .NET question ? Or are you still confused about what a web app can and can't do on the client side ?

                    Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

                    M Offline
                    M Offline
                    monu nair
                    wrote on last edited by
                    #9

                    are you here for chating or for knowledge. ???

                    mannu

                    C 1 Reply Last reply
                    0
                    • M monu nair

                      are you here for chating or for knowledge. ???

                      mannu

                      C Offline
                      C Offline
                      Christian Graus
                      wrote on last edited by
                      #10

                      At this point, I am staying up for my own amusement. If you asked a sensible question, I'd happily answer it. Right now, I can't work out what the hell it is you're trying to do, but you're very confused somewhere. I would put to you that anyone else who reads what you posted, will give the answers I gave, so you need to explain at what point it is that you meant to ask something other than what you said, if you want a real answer. Or you can just do what most people do. Ask the same senseless question again in a few days and in the meantime, tell the guy who is paying you $3 a day that work is going well.

                      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

                      1 Reply Last reply
                      0
                      • M monu nair

                        i want to upload a file using a batch file and check the upload staus from asp.net code. please suggest me the proper command line argument in batch file.

                        mannu

                        C Offline
                        C Offline
                        Christian Graus
                        wrote on last edited by
                        #11

                        MB_1981 wrote:

                        i want to upload a file using a batch file and check the upload staus from asp.net code. please suggest me the proper command line argument in batch file.

                        I'm sorry, i tried to stay up to help you, but I guess you've decided on going quiet. I expect you'll ask this exact same question tomorrow. I'd love it if you reworded it so it actually made sense and actually had an answer. But, if you get your project done or not, you gave me a laugh, and you're now immortalised in my sig, so that's got to make you proud at least.

                        Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups