javascript - How do you use node or JS to get the desktop path of windows?
给我你的怀抱2017-05-16 13:33:10
0
1
792
I can now automatically generate a PDF, and then I need to automatically save the PDF to the desktop folder of Windows, but I don’t know how to get the path of the desktop folder of Windows. . . Either node or Js is fine, thank you everyone~
I haven’t used Windows for many years, so I don’t need to obtain this path, just hardcode it. Similar to mac's 'file:///Users/xxx/Desktop/'