hassankhokhar11 0 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 Share this post Link to post Share on other sites
JoHanatCent 13 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. Share this post Link to post Share on other sites
taietel 34 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 Share this post Link to post Share on other sites
hassankhokhar11 0 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... Share this post Link to post Share on other sites