Monday, February 25, 2013

copy file between machines

following command is copy file from linux server into local folder of windows by cygwin


 scp uploads@xxx.autc.com:testftp/ncf/inbound/280DAY.DAT 280DAT.DAY

"testftp/ncf/inbound/280DAY.DAT" is the file in remote server's uploads' home folder,last parameter is the file name in local folder


Thursday, February 14, 2013

can not download pom dependency from remote repository while VPN connected and under JDK7

add following to system properties will solve problem

MAVEN_OPTS=-Djava.net.preferIPv4Stack=true

Friday, February 8, 2013

exclude files while using xcopy

created a file exclude.txt in current folder,put the wild cards that we need to exclude while copy,the nusing following xcopy command
xcopy c:\test d:\test1  /exclude:exclude.txt /s /i

connected a net resource into local mapped driver

net use \\remote ip\share_folders password /USER:username@domain.com

how to remove a mapped drivers

net use z: /delete

xcopy all sub folders

xcopy c:\test d:\test /s /i

Tuesday, February 5, 2013

double quote added while copy from excel into notepad

the best way to get rid of those double quotes is copy from excel into word,then copy from word into notepad.