Uploading a folder to server

You can specifiy the user in the “override” command as shown in the following example. The password will be request when the action is taken:

download http://xxxxxx.xx.xx:52311/Temp/test.bat
continue if {exist file “__download/test.bat”}
override wait
runas=localuser
asadmin=true
user=user1
password=required
wait "__download/test.bat"
continue if {exist file “C:\test\test.txt”}
appendfile Step 1 - command succeded
delete "c:\test\results.txt"
move __appendfile “C:\test\results.txt”