Added the ability to upload an execute a batch file.#312
Added the ability to upload an execute a batch file.#312MaxXor merged 3 commits intoquasar:masterfrom tidusjar:master
Conversation
Also added unit tests to cover the new method.
|
Does hidden execution work on them too? If not you might want to add that c: |
|
This PR, from the title, seems to only be for support of uploading it, not executing it. |
|
As a note to clarify my comment above, I would just like to say that nothing really has to be done about the execution of the file. It should already be functioning as well as the execution feature of a normal batch file. |
|
@werkamsus yes it already had the functionality for hidden files. I just built on top of that. @yankejustin good suggestions. Could you expand on point 2 & 3? I had a look how uploading and executing an exe worked and it's just using simply starting a process. This will also work with batch files and the original request is to upload and run .bat files. This achieves that. I could have wrote a lot more code and changed things but I decided against it since what was there works, so I just expanded upon it. |
|
@tidusjar Are you asking about my 2nd and 3rd points from the first comment or the 2nd and 3rd comments? :) |
|
Ah ok that makes sense! On your second point do you mean check that there are atleast [0] and [1] before checking, then no exceptions are thrown? Good idea.
|
|
Sometimes it is dangerous to assume we can call
I was suggesting removing the unnecessary 3rd part as mentioned right above. It has no need to check the |
|
Perhaps you meant to include |
|
Anyways guys, I've fixed the changes and merged it. #313 |
|
Sorry I made changes before i seen these. Thanks for the comments. |
|
Good. :) |
Feature for #244