Sign in to follow this  
Followers 0
erikson

Run command help

4 posts in this topic

i must run a special command

the command is like

CODE
java Varzuitor -d c:\\config.syq F:\\Drivere\\ATI\\SUPPORT\\5-9_xp-2k_dd_cp_wdm_26409\\WDM_SP\\

this command works only if you are in c:\windows directory.

java.exe is located in C:\Program Files\Java\jre1.5.0\bin\ .

the point is : how i make to change directory where the command is runed ?

i will give a example in command prompt ( where it works)

CODE
C:\Documents and Settings\User>cd c:\WINDOWS

C:\WINDOWS>

C:\WINDOWS>java.exe Varzuitor -d c:\\config.syq F:\\Drivere\\ATI\\SUPPORT\\5-9_

xp-2k_dd_cp_wdm_26409\\WDM_SP\\

START!

Durata = 0.031 secs

C:\WINDOWS>

so you see thet the command line works

if i run the command from another location:

CODE
C:\WINDOWS>cd c:\

C:\>java.exe Varzuitor -d c:\\config.syq F:\\Drivere\\ATI\\SUPPORT\\5-9_xp-2k_d

d_cp_wdm_26409\\WDM_SP\\

Exception in thread "main" java.lang.NoClassDefFoundError: Varzuitor

so the big problem is how i make java.exe run from c:\windows?

Share this post


Link to post
Share on other sites



You can change folder using FileChangeDir



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

one million thanks BigDod

it works perfect :)

Share this post


Link to post
Share on other sites

You can also set the workingdir directly with Run, by specifying it in the second parameter.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0