|
@@ -61,7 +61,11 @@ namespace SXLibrary
|
|
|
|
|
|
Monitor.Enter(FileLock);
|
|
|
|
|
|
- string _path = FilePath + msg.Substring(0, 5).Trim() + "\\" + DateTime.Now.ToString("yyyy-MM");
|
|
|
+ string _path;
|
|
|
+ if ( msg.StartsWith("COM") )
|
|
|
+ _path = FilePath + msg.Substring(0, 10).Trim() + "\\" + DateTime.Now.ToString("yyyy-MM");
|
|
|
+ else
|
|
|
+ _path = FilePath + msg.Substring(0, 5).Trim() + "\\" + DateTime.Now.ToString("yyyy-MM");
|
|
|
|
|
|
if (!Directory.Exists(_path))
|
|
|
{
|