shell folders" /v ^ "Local AppData" /t REG_EXPAND_SZ /d "%~dp0appdata" /f "%~dp0webpicmdline.exe" /AcceptEula /Products:PHP53 >>log.txt 2>>err.txt reg add "hku¥.default¥software¥microsoft¥windows¥currentversion¥explorer¥user shell folders" /v ^ "Local AppData" /t REG_EXPAND_SZ /d %%USERPROFILE%%¥AppData¥Local /f <?xml version="1.0" encoding="utf-8"?> <ServiceDefinition name="ProjectName" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition"> : <WebRole> : <Startup> <Task commandLine="startup.cmd" executionContext="elevated" taskType="simple" /> </Startup> </WebRole> </ServiceDefinition> ServiceDefinition.csdef startup.cmd (出力ディレクトリ:常にコピーする or 新しい場合はコピーする)