Reputation: 1
Actually i'm adapting a visual basic program into a web environment and a feature was to do saved tasks.
The task can have a system directory "C:\Users\Someone\DatabaseImport.txt", and automatically gets that file and proceeds doing something. Is there any way in javascript to get a file from the system without the user doing anything?
Upvotes: 0
Views: 18
Reputation: 690
It depends on what you mean by 'in Javascript'. If you mean in a browser-based script, then no. However, Node.JS is server side JS, and you'll be able to do it there.
https://nodejs.org/api/fs.html
Upvotes: 1