Sign in to follow this  
Followers 0
hassankhokhar11

dosent reads the specified folder path

4 posts in this topic

hai guys i want my script to read the particular folder i have declared it path in a variabe so wen ever i want to read that folder i can call that variable and irt will read it because i have specified the folder address in that variable....its seems to be working wen my script file(.au3)is inside that folder nut wen i compile it and place the .exe file on dextop and try to run it it dsent works......can smone help plz ...here is my code to give u more idea wat im tlking about..

switchin on to off.au3

Share this post


Link to post
Share on other sites



$Search = FileFindFirstFile("*.pcf")

Will only search in the current path.

If you replace it with this line:

$Search = FileFindFirstFile($SourceFolder & "*.pcf")

should give you the result that you want.


Share this post


Link to post
Share on other sites

$Search = FileFindFirstFile("*.pcf")

Will only search in the current path.

If you replace it with this line:

$Search = FileFindFirstFile($SourceFolder & "*.pcf")

should give you the result that you want.

no its now not even running wen its in the folder aswell...

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