AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

working dir, file attributes > not working ?

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
k1
Guest





PostPosted: Mon Mar 07, 2005 11:57 am    Post subject: working dir, file attributes > not working ? Reply with quote

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

PostPosted: Mon Mar 07, 2005 1:22 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group