hassankhokhar11 Posted November 8, 2010 Share Posted November 8, 2010 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 Link to comment Share on other sites More sharing options...
JoHanatCent Posted November 8, 2010 Share Posted November 8, 2010 $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. Link to comment Share on other sites More sharing options...
taietel Posted November 8, 2010 Share Posted November 8, 2010 hassankhokhar11, wellcome to the forum. If you need help, post your problem in the General Help and Support or GUI Help and Support, not in the Example Scripts. Things you should know first...In the beginning there was only ONE! And zero... Progs: Create PDF(TXT2PDF,IMG2PDF) 3D Bar Graph DeskGadget Menu INI Photo Mosaic 3D Text Link to comment Share on other sites More sharing options...
hassankhokhar11 Posted November 8, 2010 Author Share Posted November 8, 2010 $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... 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