Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 node.js 应用程序中,您可以使用 __dirpath 获取当前脚本的位置。你能做同样的事情来获取当前运行的“节点”的位置吗?
这样我就可以在节点应用程序中生成新进程,以确保使用与运行父应用程序完全相同的节点二进制文件。
process.execPath
这是启动进程的可执行文件的绝对路径名。
http://nodejs.org/api/process.html#process_process_execpath
我正在尝试使用 android 将图像上传到 C# Web 服务
Web 服务采用以下参数:
byte[] data, string strFileName
但每次我运行应用程序!它给了我这个错误: