Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Path variables
#1
Hi,

Hopefully a simple one for your brainy guys/gals.   i want to copy files from c:\%username%\xyzfolder to \\myserver\share\%computername%\data folder.

My copies are failing and/or trying to create a dir called computername rather than using the variable...help please.
#2
Cmon guys please
#3
your syntax is completely wrong

to get the correct path easily drag and drop the folders to the qm editor window
#4
To expand environment variables use str.expandpath with flag 1.

Macro Macro280
Code:
Copy      Help
str s1.expandpath("c:\%username%\xyzfolder\*" 1)
str s2.expandpath("\\myserver\share\%computername%\data" 1)
out s1; out s2
cop- s1 s2 FOF_ALLOWUNDO|FOF_NOCONFIRMMKDIR


Forum Jump:


Users browsing this thread: 5 Guest(s)