1

I want make tool in c# that allow me execute node.js application/script. I have following command:

node ./bin/3d-tiles-tools.js glbToB3dm -i ./specs/data/CesiumTexturedBox/CesiumTexturedBox.glb -o ./output/CesiumTexturedBox.b3dm

I need customize this command because I want give path to folder and automatically run this command for each file in this folder.

Question:

How run this command in command line or how to run this js script and pass arguments (give path and names for each file) to this script from C# console application?

3
  • 1
    Possible duplicate of Run shell commands using c# and get the info into string Commented Aug 30, 2017 at 13:04
  • which version of visual studio you are using? Commented Aug 30, 2017 at 14:25
  • I'm using Visual Studio 2017 community. This linked answer probably will solve my problem but I don't know how construct path. I have to use "\\" or "/" in C# to make a path? Process return me error: "'part of path' is not recognized as an internal or external command..." Commented Aug 31, 2017 at 7:07

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.