Quantcast
Channel: [Q&A - FAQ Neotys] Last questions
Viewing all articles
Browse latest Browse all 2283

How can we copy a file from a path using javascript by parameterizing file name?

$
0
0

I have a file in C:\tmp
I am writing below code to copy contents of file but the name here is hardcoded
I want to parameterize the file name so that I need not change it manually in code
var fileToCopy = new Packages.java.io.File("C:\\tmp\\base\\API_02_Details.FileName"); /
How do I do it?


Viewing all articles
Browse latest Browse all 2283

Trending Articles