View Single Post
  #7 (permalink)  
Old 11-03-2007, 11:54 PM
JavaBean's Avatar
JavaBean JavaBean is offline
Moderator
 
Join Date: May 2007
Posts: 1,272
JavaBean is on a distinguished road
The path of the file. (e.g. c:\myfile.txt)

As far as i remember, args[0] was the your application name. So you will use args[1] to access first argument like this:

Code:
java MyApplication c:\myfile.txt args[0] = MyApplication args[1] = c:\myfile.txt
Reply With Quote