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 

SplitPath - Unix/URI vs. PC - Path Delimiter Style

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
BoBo
Guest





PostPosted: Thu Jan 13, 2005 8:48 am    Post subject: SplitPath - Unix/URI vs. PC - Path Delimiter Style Reply with quote

Extracted a path from within a *.ram file (an URL shortcut link which points to the original *.rm file (Realplayer) at a server)

That link/path, following its function, is using (Unix/) URI style means uses a forward slash "/" within its path

e.g. http://www.autohotkey.com/forum/JonnyBecamePresidentSpeech.ram

If I want to split such a path using AHK's SplitPath command, the complete link/path will be returned within the OutFileName variable. Crying or Very sad. Looks like that command checks only for backslahes "\" ?!

Would find it helpfull if an additional argument U = Unix/URI could be added to reference the path delimiter style Smile

SplitPath, InputVar [, OutFileName, OutDir, OutExtension, OutNameNoExt, OutDrive, U]
Back to top
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Thu Jan 13, 2005 4:01 pm    Post subject: Reply with quote

Good suggestion. I wonder whether it would break any scripts if SplitPath were changed to always recognize slash as being the same as backslash. Thoughts?

Thanks for spotting this.
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 -> Wish List 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