ddeerr Posted November 16, 2006 Share Posted November 16, 2006 Hi, i don't why this doesn't work : MsgBox(0,"",@WorkingDir) $i = FileChangeDir("C:\Windows") MsgBox(0,"",$i & "-" & @WorkingDir) i'm using 3.2.1.2 version i use an admin account on windows 2000 I tried with 3.2.0.1 compiler same pb, just with this function, any idea ? tx Link to comment Share on other sites More sharing options...
Blue_Drache Posted November 16, 2006 Share Posted November 16, 2006 (edited) I'm assuming "pb" means "problem" and not "lead" ...You're setting the result of the FileChangeDir() function to the variable $i.FileChangeDir worked as expected. It sets the @WorkingDir and then returns a "1" to tell you that it worked just fine. FileChangeDir Changes the current working directory. FileChangeDir ( "path" ) Parameters path The path to make the current working directory. Return Value Success: Returns 1. Failure: Returns 0 if working directory not changed. RemarksNone. Edited November 16, 2006 by Blue_Drache Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
ddeerr Posted November 16, 2006 Author Share Posted November 16, 2006 Thanks for your reply.I'm assuming "pb" means "problem" and not "lead" ...YEs pb = problem FileChangeDir worked as expected.In the documentation i just see Success : return 1 Failure : returns 0 if working directory not changed (that what i get)So by expected you mean @error ? Link to comment Share on other sites More sharing options...
Blue_Drache Posted November 16, 2006 Share Posted November 16, 2006 No. Try this. Make a file in your @scriptdir called "temp.txt" Fill it with something...write a script to change your @workingdir to C:\temp and copy the file to @workingdir. When I run your script as provided I get my user temp as the first msgbox, and then "1-C:\windows" as the output for the second msgbox. It works fine for me. Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
ddeerr Posted November 16, 2006 Author Share Posted November 16, 2006 Noob in progress = me :"> The windows i used to test doesn't contain C:\windows directory So now it works as always, sorry for this no problem Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now