摘要:
test.BAT部分set "Ymd=%date:~,4%%date:~5,2%%date:~8,2%"@echo off sqlplus user/pwd@crm1 @微信统计.sql"C:\Program Files\WinRAR\Rar.exe" a %ymd%.rar *.csv copy %ymd%.rar Y:\kdcc\CRM\onlinecs\微信统计\%ymd%.rarexittest.sql部分set echo offset linesize 10000set pagesize 50000set colsep ','s 阅读全文
摘要:
1.SQL SERVERSQLCMD的用法,使用CMD 执行sql语句语法如下:sqlcmd [ { { -U <login id> [ -P <password> ] } | -E } ] [-S <server> [ \<instance > ] ] [ -H <workstation> ] [ -d <database> ] [ -l <time out> ] [ -t <time out> ] [ -h <headers> ] [ -s <col separator> 阅读全文
摘要:
private MMDevice defaultDevice = null; //參考資料 // http://www.codeproject.com/KB/vista/CoreAudio.aspx?msg=2747721 // //判斷當前系統揚聲器狀態 private bool isMuted() { return defaultDevice.AudioEndpointVolume.Mute; } //靜音 private void setMute(... 阅读全文
摘要:
--重新编译所有视图declare @s nvarchar(4000) declare tb cursor local for select 'sp_refreshview '''+name+ ' '' ' from sysobjects where xtype= 'V ' and status> =0 open tb fetch tb into @s while @@fetch_status=0 begin exec(@s) fetch tb into @s end close tb deallocate 阅读全文
摘要:
http://www.cnblogs.com/nnkook/archive/2012/05/10/2494567.htmlhttp://www.cnblogs.com/Martin_Q/archive/2010/12/06/1897614.htmlhttp://www.cnblogs.com/haio/archive/2010/07/12/1775809.htmlhttp://wenku.baidu.com/view/6bebf148767f5acfa0c7cd01.htmlhttp://www.cnblogs.com/phqde/archive/2012/08/23/2652162.html 阅读全文
摘要:
获取或设置一个值,该值指示 ChildWindow 是否具有关闭按钮。this.HasCloseButton = false;或者另外一种方式,在调用窗口注册回调,当子窗口关闭时,回调一个函数,继续弹出public MainPage() { InitializeComponent(); childWindowDemo.OkClicked +=new EventHandler(childWindowDemo_OkClicked); }privatevoid childWindowDemo_OkClicked(object sender, EventArgs e) { childWin... 阅读全文
摘要:
LINUX:在linux下设置永久路由的方法:在/etc/rc.local里添加方法: route add -net 192.168.3.0/24 dev eth0route add -net 192.168.2.0/24 gw 192.168.3.254WINDOWS下的route命令:简单的的操作如下,查看路由状态:route print只查看ipv4(ipv6)路由状态:route print -4(-6)添加路由:route add 目的网络 mask 子网掩码 网关 ——重启机器或网卡失效route add 192.168.20.0 mask 255.255.255.0 192.16 阅读全文
摘要:
需要数据库所在的机器与被链接的数据库网络是通的create database link link_zxdb connect to 用户名 identified by 密码 using '(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.32.1.72)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = oadb) ) )'; 阅读全文
摘要:
import java.io.BufferedReader;import java.io.BufferedWriter;import java.io.File;import java.io.IOException;import java.io.InputStream;import java.io.InputStreamReader;import java.io.OutputStreamWriter;import java.util.ArrayList;import java.util.Arrays;import java.util.Iterator;import java.util.List; 阅读全文
摘要:
WPF中为了控制窗口在最小化的时候,能够通过代码控制窗口恢复并显示出来,需要按如下方式调用代码this.Show();//这一句是需要的,没有的话,窗口在最小化的时候没法恢复过来this.Activate();this.WindowState = WindowState.Normal; 阅读全文