Sign in to follow this  
Followers 0
ddeerr

FileChangeDir pb

5 posts in this topic

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


MsgBox(0, "Steven Seagal", "Les poches bourrées de Pesos")

Share this post


Link to post
Share on other sites



#2 ·  Posted (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.

Remarks

None.

Edited by Blue_Drache

Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Share this post


Link to post
Share on other sites

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 ?


MsgBox(0, "Steven Seagal", "Les poches bourrées de Pesos")

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 :lmao:


MsgBox(0, "Steven Seagal", "Les poches bourrées de Pesos")

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