I have a simple login script that will pull another .bat where it will point to our powerpoint template.
Problem is, whenever I use the below, I always get a popup on the second instance which is meant to be hidden, as you can see -y doesn't hide it. I've tried a min before xcopy but that causes errors and my knowledge of this is rather limited.
Below is the code:
login script:
@echo off
REM Copy Powerpoint default template to user profile
xcopy "\\wsfile01\AppData\Microsoft Office Templates\Blank.potx" "\\nebula\public\Ldn_town\%username%\AppData\Roaming\Microsoft\Templates" /Y
exit
I appreciate that we are copying from network to network and this may seem daft but all our profiles sit on a local server for each satellite office.
Any help would be much appreciated.
You can pass a Y to the xcopy command via
echowhich will simulate entering Y yourself.