lundi 25 janvier 2016

Batch File Failing to create txt file

I can't seem to figure this one out, it's a fairly simple script. My if statement isn't checking for the file existence and the else command isn't creating a file in the appdata directory.

reg.exe is working correctly, the key has is added.

Any guidance would be great.

@echo
IF EXIST "%APPDATA%\outlookclean.txt" (exit
) 
else 
( 
% reg.exe add HKCU\Software\Microsoft\Office\15.0\Outlook\Profiles\OutlookTest
@echo Done > "%APPDATA%\outlookclean.text"
)

Aucun commentaire:

Enregistrer un commentaire