TheCuz Posted January 10, 2006 Share Posted January 10, 2006 I have 7 folders (1 for each day of the week) and each folder has 24 folders (1 for every hour) and was wodering if you can use vairable in a file path. For example: DirCopy ("source path", "\\computer_name\d\@WDAY\0030" ,1) I have tried a couple of different ways and can not seem to get it to work. Any ideas? Thanks in advance. [font="Verdana"]People who say it cannot be done should not interrupt those who are doing it. - George Benard Shaw[/font] Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted January 10, 2006 Moderators Share Posted January 10, 2006 (edited) You have to seperate variables from strings, otherwise it will just see it as part of the string. Try this: DirCopy ("source path", "\\computer_name\d\" & @WDAY & "\0030" ,1) Edited January 10, 2006 by big_daddy Link to comment Share on other sites More sharing options...
TheCuz Posted January 12, 2006 Author Share Posted January 12, 2006 Ah....gotch ya. Thanks for the help [font="Verdana"]People who say it cannot be done should not interrupt those who are doing it. - George Benard Shaw[/font] 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