mfurman Posted April 26, 2010 Share Posted April 26, 2010 (edited) making a backup script is there a way to get DirCopy to run similar to this i need to pull the username from a pc and create a folder dynamically in \backup with the username from the pc : DirCopy(@FavoritesDir, "C:\Backups\@UserName\Favorites", 1) Edited April 26, 2010 by mfurman Link to comment Share on other sites More sharing options...
enaiman Posted April 26, 2010 Share Posted April 26, 2010 @UserName inside quotes is treated as simple text and not as a macro. The correct line would be: DirCopy(@FavoritesDir, "C:\Backups\"&@UserName&"\Favorites", 1) SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script wannabe "Unbeatable" Tic-Tac-Toe Paper-Scissor-Rock ... try to beat it anyway :) 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