-3

I have just started angular and typescript and created a web application using the command "ng new myapp". And i want to run powershell commands from my web application. Can anyone help me with this?

This is my file structure that i have after creating the project- https://www.tutorialspoint.com/angular4/images/final_file_structure.jpg

3

1 Answer 1

2

This is not possible by sole Angular application. If the website would be able to execute commands that would be a major security issue. If you want to execute some powershell commands by pressing buttons in Angular you would need a f.e. node server with win32 api library. In angular you would be just calling node api and server would execute commands.

Sign up to request clarification or add additional context in comments.

2 Comments

This is my file structure that i have after creating the project where should i add the code- tutorialspoint.com/angular4/images/final_file_structure.jpg
@thechosenone either in different directory as separate app or you could put it in /api/. Really it's up to you.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.