Sign in to follow this  
Followers 0
erikson

what is wrong

4 posts in this topic

FileCopy ("\\server\files\vaseTvFvExt.class", "C:\WINDOWS\SYSTEM\vaseTvFvExt.class")

FileChangeDir ("c:\windows\system\")

Run ('java.exe vaseTvFvExt' &$number_of_license& '' )

where $number_of_license is a numeric value (its ok, i make a filewrite("file" , $number_of_license ) and it read the value proper

tell me what is wrong, because when i execute the script nothing happen, and if i execute thet command from command prompt (java.exe vaseTvFvExt 10 - for example) it works great

its something wrong in the syntax?

Share this post


Link to post
Share on other sites



FileCopy ("\\server\files\vaseTvFvExt.class", "C:\WINDOWS\SYSTEM\vaseTvFvExt.class")

FileChangeDir ("c:\windows\system\")

Run ('java.exe vaseTvFvExt' &$number_of_license& '' )

where $number_of_license is a numeric value (its ok, i make a filewrite("file" , $number_of_license ) and it read the value proper

tell me what is wrong, because when i execute the script nothing happen, and if i execute thet command from command prompt (java.exe vaseTvFvExt 10 - for example) it works great

its something wrong in the syntax?

I guess it's the same problem/solution as posted here: http://www.autoitscript.com/forum/index.php?showtopic=39713


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites

no is not the same.

i changedir to c:\windows\system

in the code if i put

RunWait ('java.exe vaseTvFvExt 10' ) for exwample, it works

if i put

RunWait ('java.exe vaseTvFvExt'& $number_of_license & '' ) don`t work

$number_of_license = ControlGetText("","",@GUI_CtrlId) (the variable)

if i put

FileWriteLine ("c:\numarul.txt", $number_of_license)

the text file look like

16

so i dont have any ideea why it doesen`t work :whistle:

Share this post


Link to post
Share on other sites

in the code if i put

RunWait ('java.exe vaseTvFvExt 10' ) for exwample, it works

if i put

RunWait ('java.exe vaseTvFvExt'& $number_of_license & '' ) don`t work

well, because there is a difference! Put a space after vaseTvFvExt and it will most probably work!


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

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