 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
k1 Guest
|
Posted: Mon Mar 07, 2005 11:57 am Post subject: working dir, file attributes > not working ? |
|
|
Task: check file c:\work\test.txt
------------------------------
dir1 = c:\work
SetWorkingDir, %dir1%
does not work, still shows old script dir
FileGetAttrib, o2 , %dir1%\test.txt
does not work
FileGetAttrib, o2 , c:\work\test.txt
this works
Any thoughts?
Thanks |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Mon Mar 07, 2005 1:22 pm Post subject: |
|
|
You probably already know that A_ScriptDir is not necessarily the same as A_WorkingDir. The former is always the folder that contains the script, while the latter could be anything.
As for your results, I can't explain or reproduce them. You might want to check that your script does not contain any invisible characters inside the folder or file names (perhaps by retyping it).
Also, it's possible that this is a user permissions issue: if the user somehow lacks access to the folder but not the files it contains, maybe you can't SetWorkingDir to that folder. The same problem might occur if the folder is locked somehow. You could try a different folder just for testing purposes. |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|