2010-12-10 3 views
3

で%ALLUSERSPROFILE%フォルダへのログイン(またはそのサブフォルダ...)私は私のログは%ALLUSERSPROFILE%フォルダに行きたいNlog 1.0

私はNLog 1.0を使用して、ウェブサイトのwikiのように思えますよ2.0リリースのためにドキュメントをアップグレードする際に穴が空いています。

<target name="file" xsi:type="File" fileName="${%AllUsersProfile%}\Logs\${date:format=yyyy-MM-dd_(HH)}_(pid-${processid}).htm"> 
<target name="file" xsi:type="File" fileName="${%AllUsersProfile}\Logs\${date:format=yyyy-MM-dd_(HH)}_(pid-${processid}).htm"> 
<target name="file" xsi:type="File" fileName="${AllUsersProfile}\Logs\${date:format=yyyy-MM-dd_(HH)}_(pid-${processid}).htm"> 
<target name="file" xsi:type="File" fileName="%AllUsersProfile%\Logs\${date:format=yyyy-MM-dd_(HH)}_(pid-${processid}).htm"> 
<target name="file" xsi:type="File" fileName="%AllUsersProfile\Logs\${date:format=yyyy-MM-dd_(HH)}_(pid-${processid}).htm"> 

答えて

6

さて、specialfolderが行うトリック

<target name="file" xsi:type="File" fileName="${specialfolder:folder=CommonApplicationData}\Logs\${date:format=yyyy-MM-dd_(HH)}_(pid-${processid}).htm"> 
+0

非常に便利な、ありがとう:):私はwin7のを使用してい

は、次のことを試してみました – Jedidja

関連する問題