![]() |
| |||||||
| |


|
| | LinkBack | Thread Tools |
|
#1
| ||||
| ||||
| Hey I want to write a really simple batch file and was wondering if anyone could help? Basically I have written some code, and one of the parameters I want to pass to the code is the current working dirrectory of the batch file. So, say I have a batch file called run.bat, and its in:- C:\Documents and Settings\J\My Documents\ I want to pass that dirrectory to my program, like this:- java Main "C:\Documents and Settings\J\My Documents" I know if I do cd I get the current working dirrectory, so i guess its something like this:- Code: java Main $cd$ thanks |
| |
|
#2
| ||||
| ||||
Code: java Main %*
__________________ I think I am a signature, therefore I exist! I believe a higher being has me as a signature... |
| Please support this forum, donate towards our running costs. |
![]() |
| Thread Tools | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| A simple guide: Speed up your computer! | slipend | General Software Chat | 2 | 6th Aug 2007 05:09 AM |
| A simple question... | crimson123 | Networking, Modems & VoIP | 7 | 27th Apr 2007 11:30 AM |
| Is there a simple way to figure out... | Barbiq | Off Topic Discussion | 2 | 1st Apr 2007 06:02 AM |
| How do I take a simple yet brilliant idea (a... | baby snooks | Off Topic Discussion | 5 | 21st Mar 2007 05:25 AM |
| "A handheld computer systems uses a batch sysytem"... | Janedihno | Laptops, Mobiles & PDAs | 1 | 20th Mar 2007 02:05 PM |
| Powered by vBulletin® Copyright ©2000 - 2008 Jelsoft Enterprises Ltd. SEO by vBSEO ©2008, Crawlability, Inc. |