Hi, I am trying to find a command or better suggestion for my current script.
I would like a file (RemoteApp) be copied from the server if its not on the local offices LAN and not currently on the users log in. In a nutshell, deploying to remoteapp and I would like anyone to be able to log into a satellite office computer and
have the RemoteApp file on their desktop to open a session. I cant just set it as user GP bc I do not want to confuse user at main office because they will have the application locally installed on the computer. Any suggestions would be greatly appreciated.
If there is another way to go about this, Im all ears. Thanks
echo off
if exist ”%USERPROFILE%\DESKTOP\FileName. rdp” goto yesfile
if not exist ”%USERPROFILE%\DESKTOP\FileName .rdp” goto nofile
goto end
:yesfile
echo FILE EXISTS PROCESSING
goto end
:nofile
echo FILE DOES NOT EXIST PROCESSING
copy "\\Server\ShareFolder\Filename.rdp” ”%USERPROFILE%\DESKTOP\”
goto end
:end