Jump to content
Sign in to follow this  
TheCuz

Using a variable in path name

Recommended Posts

TheCuz

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
big_daddy

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
TheCuz

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.