Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Pedro Silva   on Apr 19 In Java Category.

  
Question Answered By: Carl Woods   on Apr 19

If your doing this for a local html page, you can use JavaScript and ActiveX:

function getFile(filespec) {
var fso, f;
fso = new ActiveXObject("Scripting.FileSystemObject");
f = fso.GetFile(filespec);
return f;
}

Where filespec is an absolute or relative path to the specified file.
(Unless you set the current directory, the path will be relative to the
user's desktop)

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Find a file in system Or get search suggestion and latest updates.


Tagged: