ravaged1 0 Posted December 9, 2010 I'm trying to create a script that will download users databases that are named example: something_username.dbs I only want to download the file for that user when they run the script. downloading antrenamer just as a test below to see if I could save file with the users name in it. What am I missing? $User = @UserName Local $hDownload = InetGet("http://update.antp.be/renamer/antrenamer2_install.exe", @HomeDrive & "\$User_antrenamer2_install.exe", 1, 1) Do Sleep(250) Until InetGetInfo($hDownload, 2) ; Check if the download is complete. Local $nBytes = InetGetInfo($hDownload, 0) InetClose($hDownload) ; Close the handle to release resourcs. MsgBox(0, "", "Bytes read: " & $nBytes) Share this post Link to post Share on other sites
iamtheky 927 Posted December 9, 2010 (edited) get $user out of the quotes @HomeDrive & "\" & $User & "_antrenamer2_install.exe" Edited December 9, 2010 by iamtheky ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Share this post Link to post Share on other sites
ravaged1 0 Posted December 9, 2010 get $user out of the quotes Knew it was something simple. Thanks, This forum is always so help full. Share this post Link to post Share on other sites