Sign in to follow this  
Followers 0
TheCuz

Using a variable in path name

3 posts in this topic

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]

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by big_daddy

Share this post


Link to post
Share on other sites

Ah....gotch ya.

Thanks for the help :lmao:


[font="Verdana"]People who say it cannot be done should not interrupt those who are doing it. - George Benard Shaw[/font]

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0