Jump to content

FileChangeDir pb


ddeerr
 Share

Recommended Posts

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

Link to comment
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 ?

Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...