- Create .xsd/schema file
- Open Visual Studio Command Prompt
- Go to the location of the schema file
- Type => xsd /classes <schema_file.xsd>
- Above command will generate a <schema_file.cs>
Wednesday, November 9, 2016
Wednesday, October 5, 2016
DOS Batch Command : Move 10 files out of n number of files
@echo off
REM move 250 xml files from the SOURCE folder to the DESTINATION folder.
setlocal enabledelayedexpansion
set "source=C:\BizTalk_Dropzone\zTest\Source"
set "target=C:\BizTalk_Dropzone\zTest\Destination"
set counter=0
for %%F in ("%source%\*.*") do (
set "file=%%~nxF"
echo move /Y "%%F" "%target%\"
move /Y "%%F" "%target%\"
set /a counter+=1
if !counter! GEQ 10 goto :break
)
:break
echo Total files moved is %counter%...
REM move 250 xml files from the SOURCE folder to the DESTINATION folder.
setlocal enabledelayedexpansion
set "source=C:\BizTalk_Dropzone\zTest\Source"
set "target=C:\BizTalk_Dropzone\zTest\Destination"
set counter=0
for %%F in ("%source%\*.*") do (
set "file=%%~nxF"
echo move /Y "%%F" "%target%\"
move /Y "%%F" "%target%\"
set /a counter+=1
if !counter! GEQ 10 goto :break
)
:break
echo Total files moved is %counter%...
Tuesday, October 4, 2016
Banco De Oro (BDO), One time password (OTP) has been compromised?
Hello BDO why do I keeps receiving One time password (OTP) even I am not logging in?
Does my account has been compromised?
The first time I received One time password (OTP) without my knowledge, I simply changed all my main password and secret password. But after a minute or two, I received again One time password (OTP) without me logging in.
Oct 03, 2016 14:44 - Reference Number: 003936
Oct 03, 2016 14:45 - Reference Number: 009056
I begin to panic, called BDO Hotline 6318000, stated my concerned and operator suggested to SUSPEND my online banking account and I agreed, and gave me a Ticket number. She said it will take 20 working days to investigate my account.
But later in the afternoon I received again One time password (OTP) with a reference number 020661 dated Oct 03, 2016 17:22, hey! BDO what the hell is happening? I do try to logging to my account to check if it was suspended and yes it is. Your account has been locked due to security reasons, please call BDO Customer Contact Center.
Does my account has been compromised?
The first time I received One time password (OTP) without my knowledge, I simply changed all my main password and secret password. But after a minute or two, I received again One time password (OTP) without me logging in.
Oct 03, 2016 14:44 - Reference Number: 003936
Oct 03, 2016 14:45 - Reference Number: 009056
I begin to panic, called BDO Hotline 6318000, stated my concerned and operator suggested to SUSPEND my online banking account and I agreed, and gave me a Ticket number. She said it will take 20 working days to investigate my account.
But later in the afternoon I received again One time password (OTP) with a reference number 020661 dated Oct 03, 2016 17:22, hey! BDO what the hell is happening? I do try to logging to my account to check if it was suspended and yes it is. Your account has been locked due to security reasons, please call BDO Customer Contact Center.
Today Oct 05, 2016 at around 05:47 another One time password (OTP) arrived even though my account was already being suspended. WTF!!!
Calling Banco De Oro (BDO), can you explain what is happening here?!!!
UPDATES:
Still receiving OTP even account was suspended. I am still waiting for #BDO Fraud department to contact me.
Oct 06, 2016 10:26 - Reference Number: 290171
UPDATES:
Still receiving OTP even account was suspended. I am still waiting for #BDO Fraud department to contact me.
Oct 06, 2016 10:26 - Reference Number: 290171
Thursday, September 8, 2016
DOS Batch Command : Check If Any Files exists and transfer it to specific folder
@echo off
IF EXIST "C:\Payments_API\FilePay\*.txt" move /Y "C:\Payments_API\FilePay\*.txt" "C:\\SharedFolder\DDD\FilePayPay\"
IF EXIST "C:\Payments_API\FilePay\*.txt" move /Y "C:\Payments_API\FilePay\*.txt" "C:\\SharedFolder\DDD\FilePayPay\"
Thursday, May 19, 2016
Old codes worth sharing : Simple c# class that logs to a file
A simple c# class that logs to a file.
Some of the exception formatting adopted from one of @robconery tutorial session way back years ago :)
using System;
using System.IO;
namespace Code2016
{
[Serializable]
internal class WriteLog
{
// Methods
public static string Write(string methodName, Exception exception)
{
string logs = LogFormater(exception, methodName);
WriteToLogFile(logs);
return logs;
}
public static string Write(string methodName, string exception)
{
string logs = LogFormater(exception, methodName);
WriteToLogFile(logs);
return logs;
}
private static void WriteToLogFile(string logs)
{
//StreamWriter writer = new StreamWriter(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + @"\" + DateTime.Now.ToString("ddMMyyyy") + ".log", true);
StreamWriter writer = new StreamWriter(@"C:\BizTalk_Dropzone\Merak942\Logs\" + DateTime.Now.ToString("yyyyMMdd") + ".log", true);
writer.WriteLine(logs);
writer.Close();
}
private static string LogFormater(Exception exception, string methodName)
{
string content = string.Format("Date/Time: {0}{1}", DateTime.Now.ToString("dd.MM.yyyy hh:mm:ss"), Environment.NewLine);
content += string.Format("Method Name: {0}{1}", methodName, Environment.NewLine);
content += string.Format("Error Details: {0}{1}", exception.Message, Environment.NewLine);
content += string.Format("Source: {0}{1}", exception.Source, Environment.NewLine);
content += string.Format("Stack Trace: {0}{1}{1}{1}", exception.StackTrace, Environment.NewLine);
return content;
}
private static string LogFormater(string exception, string methodName)
{
string content = string.Format("Date/Time: {0}{1}", DateTime.Now.ToString("dd.MM.yyyy hh:mm:ss"), Environment.NewLine);
content += string.Format("Method Name: {0}{1}", methodName, Environment.NewLine);
content += string.Format("Error Details: {0}{1}", exception, Environment.NewLine);
return content;
}
}
}
Some of the exception formatting adopted from one of @robconery tutorial session way back years ago :)
using System;
using System.IO;
namespace Code2016
{
[Serializable]
internal class WriteLog
{
// Methods
public static string Write(string methodName, Exception exception)
{
string logs = LogFormater(exception, methodName);
WriteToLogFile(logs);
return logs;
}
public static string Write(string methodName, string exception)
{
string logs = LogFormater(exception, methodName);
WriteToLogFile(logs);
return logs;
}
private static void WriteToLogFile(string logs)
{
//StreamWriter writer = new StreamWriter(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + @"\" + DateTime.Now.ToString("ddMMyyyy") + ".log", true);
StreamWriter writer = new StreamWriter(@"C:\BizTalk_Dropzone\Merak942\Logs\" + DateTime.Now.ToString("yyyyMMdd") + ".log", true);
writer.WriteLine(logs);
writer.Close();
}
private static string LogFormater(Exception exception, string methodName)
{
string content = string.Format("Date/Time: {0}{1}", DateTime.Now.ToString("dd.MM.yyyy hh:mm:ss"), Environment.NewLine);
content += string.Format("Method Name: {0}{1}", methodName, Environment.NewLine);
content += string.Format("Error Details: {0}{1}", exception.Message, Environment.NewLine);
content += string.Format("Source: {0}{1}", exception.Source, Environment.NewLine);
content += string.Format("Stack Trace: {0}{1}{1}{1}", exception.StackTrace, Environment.NewLine);
return content;
}
private static string LogFormater(string exception, string methodName)
{
string content = string.Format("Date/Time: {0}{1}", DateTime.Now.ToString("dd.MM.yyyy hh:mm:ss"), Environment.NewLine);
content += string.Format("Method Name: {0}{1}", methodName, Environment.NewLine);
content += string.Format("Error Details: {0}{1}", exception, Environment.NewLine);
return content;
}
}
}
Subscribe to:
Posts (Atom)