<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[ningyingjun的专栏]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/ningyingjun</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; ningyingjun]]></copyright><item><title><![CDATA[Windows 任务计划程序 【不管用户是否登录都要运行】执行时不显示CMD或程序窗口]]></title><link>https://blog.csdn.net/ningyingjun/article/details/137872130</link><guid>https://blog.csdn.net/ningyingjun/article/details/137872130</guid><author>ningyingjun</author><pubDate>Wed, 17 Apr 2024 17:07:24 +0800</pubDate><description><![CDATA[Windows 任务计划程序 【不管用户是否登录都要运行】执行时不显示CMD或程序窗口]]></description><category></category></item><item><title><![CDATA[VB.Net 使用Semaphore信号量进行多线程同时并行的出力文件，异步且控制并发数量,并兼容.NET Framework 4.0]]></title><link>https://blog.csdn.net/ningyingjun/article/details/131183939</link><guid>https://blog.csdn.net/ningyingjun/article/details/131183939</guid><author>ningyingjun</author><pubDate>Tue, 13 Jun 2023 11:00:52 +0800</pubDate><description><![CDATA[VB.Net 使用Semaphore信号量进行多线程同时并行的出力文件，异步且控制并发数量,并兼容.NET Framework 4.0]]></description><category></category></item><item><title><![CDATA[C#(VB.NET) 压缩成zip包的两种方式SharpZipLib和System.IO.Packaging。]]></title><link>https://blog.csdn.net/ningyingjun/article/details/129025143</link><guid>https://blog.csdn.net/ningyingjun/article/details/129025143</guid><author>ningyingjun</author><pubDate>Tue, 14 Feb 2023 14:54:38 +0800</pubDate><description><![CDATA[C#(VB.NET) 压缩成zip包的两种方式SharpZipLib和System.IO.Packaging。]]></description><category></category></item><item><title><![CDATA[Web.config中设置文件上传大小限制和请求数据流大小设置。]]></title><link>https://blog.csdn.net/ningyingjun/article/details/125677129</link><guid>https://blog.csdn.net/ningyingjun/article/details/125677129</guid><author>ningyingjun</author><pubDate>Fri, 08 Jul 2022 15:01:43 +0800</pubDate><description><![CDATA[Web.config中设置文件上传大小限制和请求数据流大小设置。]]></description><category></category></item><item><title><![CDATA[CMD 查找指定日期前的文件数量和删除指定日期前的文件。]]></title><link>https://blog.csdn.net/ningyingjun/article/details/125064406</link><guid>https://blog.csdn.net/ningyingjun/article/details/125064406</guid><author>ningyingjun</author><pubDate>Tue, 31 May 2022 14:05:22 +0800</pubDate><description><![CDATA[1.直接看代码。


@echo off
set f=0
for /f %%i in ('forfiles /p D:\TEST /d -60 /m "*.csv"') do set /a f=f+1
forfiles /p D:\TEST /d -60 /m "*.csv" /c "cmd /c del @file"
echo %date:~0,4%/%date:~5,2%/%date:~8,2% %f%件&gt;&gt;D:\TEST\文件件数.txt" 



2.详细说明。

1.设置变量。
set]]></description><category></category></item><item><title><![CDATA[在IE和Edge中用JS判断只能输入数字，字母，日期型。]]></title><link>https://blog.csdn.net/ningyingjun/article/details/124319143</link><guid>https://blog.csdn.net/ningyingjun/article/details/124319143</guid><author>ningyingjun</author><pubDate>Thu, 21 Apr 2022 17:18:24 +0800</pubDate><description><![CDATA[IE的HTML：

ime-mode:disabled限制不能输入文字，只有IE有效。


//ime-mode:disabled限制不能输入文字，只有IE有效。
&lt;input style="ime-mode:disabled" onkeypress="fncNum();return true;" /&gt;


IE的JS ：只能输入数字，并且按回车时转换成Tab。keyCode48~57:数字，keyCode13:回车，keycode9:Tab。


//IE只能输入数字，并且按回车时转换成Tab]]></description><category></category></item><item><title><![CDATA[JS在Edge中点击回车焦点移动到下一个控件，获取画面中的所有可编辑的项目，排除属性「readonly,disabled,hidden」的控件。]]></title><link>https://blog.csdn.net/ningyingjun/article/details/124318915</link><guid>https://blog.csdn.net/ningyingjun/article/details/124318915</guid><author>ningyingjun</author><pubDate>Thu, 21 Apr 2022 12:54:56 +0800</pubDate><description><![CDATA[Edge中点击回车焦点移动到下一个控件，代码。


//Edge対応
document.onkeydown = function enterToTab(event) {
    //获取画面中的所有能入力的input和submit按钮。
    var inputs = document.querySelectorAll("input[type='text']:not(:disabled):not([readonly]):not([type=hidden]),input[type='submit']");
]]></description><category></category></item><item><title><![CDATA[CSS样式给不可编辑的按钮设置颜色。]]></title><link>https://blog.csdn.net/ningyingjun/article/details/124318738</link><guid>https://blog.csdn.net/ningyingjun/article/details/124318738</guid><author>ningyingjun</author><pubDate>Thu, 21 Apr 2022 12:38:10 +0800</pubDate><description><![CDATA[CSS代码：


input[type="submit"]:disabled {
    color: lightgray;
}

input[type="submit"]是提交按钮，可以设置别的type属性。

比如：input[type="button"],input[type="image"]



color可以设置颜色，实例是灰色。





如果资源学习了，可以点赞支持！




...]]></description><category></category></item><item><title><![CDATA[ODP.NET(Oracle.ManagedDataAccess) 中 select中多个相同参数名报错(ORA-01008)。]]></title><link>https://blog.csdn.net/ningyingjun/article/details/124104182</link><guid>https://blog.csdn.net/ningyingjun/article/details/124104182</guid><author>ningyingjun</author><pubDate>Mon, 11 Apr 2022 17:31:20 +0800</pubDate><description><![CDATA[ODP.NET(Oracle.ManagedDataAccess) 中 select中多个相同参数名报错(ORA-01008)。]]></description><category></category></item><item><title><![CDATA[javac 循环编译子目录里所有.java文件成.class文件。]]></title><link>https://blog.csdn.net/ningyingjun/article/details/123409155</link><guid>https://blog.csdn.net/ningyingjun/article/details/123409155</guid><author>ningyingjun</author><pubDate>Thu, 10 Mar 2022 19:36:25 +0800</pubDate><description><![CDATA[新建一个test.bat文件，放入下面的代码内容。然后放在出力的.java的顶层目录。

双击bat文件应该就可以了。




dir /s /B *.java &gt; sources.txt
javac @sources.txt



如果资源学习了，可以点赞支持！
]]></description><category></category></item><item><title><![CDATA[Oracle BLOB类型 用SQL出力txt或jpg文件]]></title><link>https://blog.csdn.net/ningyingjun/article/details/122712221</link><guid>https://blog.csdn.net/ningyingjun/article/details/122712221</guid><author>ningyingjun</author><pubDate>Thu, 27 Jan 2022 09:49:42 +0800</pubDate><description><![CDATA[1.在Oracle服务器上创建出力文件的路径和设置对应权限


--服务器上cmd运行
sqlplus sys/test@ORA12 as sysdba

--设置目录位置
create or replace directory BLOBDIR as 'E:\BLOBDIR';

--目录设置可以使用的用户
Grant read,write on directory BLOBDIR to sys;
Grant read,write on directory BLOBDIR to TEST;

--设置出力文]]></description><category></category></item><item><title><![CDATA[System.Runtime.InteropServices.COMException (0x800A03EC):无法访问文件。]]></title><link>https://blog.csdn.net/ningyingjun/article/details/122160375</link><guid>https://blog.csdn.net/ningyingjun/article/details/122160375</guid><author>ningyingjun</author><pubDate>Sun, 26 Dec 2021 20:45:05 +0800</pubDate><description><![CDATA[1.运行comexp.msc -32

注意因为excel 是32 位的，所以这里用的32位的操作， 如用64位的操作命令：dcomcnfg.exe，将找不到excel com组件。

2.在DCOM里找到[Microsoft Excel Application],右键属性。



ID属性里选择这个用户，然后输入登录的用户名和密码（只因作业需求用的是日文系统，所以图片是日文的）

3.如果还是不可用再设置第3个tab里的权限设置，在编辑里加入对应的用户（Everyone用户或者NEWWORK SERVI.]]></description><category></category></item><item><title><![CDATA[System.Exception: ActiveX 无法创建组件]]></title><link>https://blog.csdn.net/ningyingjun/article/details/122160294</link><guid>https://blog.csdn.net/ningyingjun/article/details/122160294</guid><author>ningyingjun</author><pubDate>Sun, 26 Dec 2021 20:30:58 +0800</pubDate><description><![CDATA[解决方法：web.config里添加权限设置。


'Web.config里
&lt;system.web&gt;
	&lt;identity impersonate ="true" userName="登录用户名" password="登录用户密码"/&gt;
&lt;/system.web&gt;


]]></description><category></category></item><item><title><![CDATA[ClosedXML.Excel 多个Excel之间复制sheet]]></title><link>https://blog.csdn.net/ningyingjun/article/details/122113446</link><guid>https://blog.csdn.net/ningyingjun/article/details/122113446</guid><author>ningyingjun</author><pubDate>Thu, 23 Dec 2021 18:02:27 +0800</pubDate><description><![CDATA['基础文件
Dim book As XLWorkbook = New XLWorkbook("D:test.xlsx")
'从tempbook复制到book。
Dim tempbook As XLWorkbook = New XLWorkbook("D:temptest.xlsx")
'防止sheetName重复
Dim newSheet As Integer = 0

'sheet索引是从1开始。
For sheetIdx = 1 To tempbook.Worksheets.Count
  newSh.]]></description><category></category></item><item><title><![CDATA[ORA-43853: SECUREFILE lobs cannot be used in non-ASSM tablespace “SYSTEM“解决方法]]></title><link>https://blog.csdn.net/ningyingjun/article/details/121790829</link><guid>https://blog.csdn.net/ningyingjun/article/details/121790829</guid><author>ningyingjun</author><pubDate>Wed, 08 Dec 2021 14:52:20 +0800</pubDate><description><![CDATA[ORA-43853]]></description><category></category></item><item><title><![CDATA[解决System.Reflection.ReflectionTypeLoadException mscorlib.dll]]></title><link>https://blog.csdn.net/ningyingjun/article/details/121375975</link><guid>https://blog.csdn.net/ningyingjun/article/details/121375975</guid><author>ningyingjun</author><pubDate>Wed, 17 Nov 2021 13:39:52 +0800</pubDate><description><![CDATA[1.应该是部分DLL没有找到。先出力详细错误信息。


            try
            {
                //这里的内容是出错的代码。
                var controllers = AppDomain.CurrentDomain.GetAssemblies().DefinedTypes
            }
            catch (ReflectionTypeLoadException ex)
            {
 ]]></description><category></category></item><item><title><![CDATA[用BAT 文件启动Oracle数据库和执行SQL]]></title><link>https://blog.csdn.net/ningyingjun/article/details/119030361</link><guid>https://blog.csdn.net/ningyingjun/article/details/119030361</guid><author>ningyingjun</author><pubDate>Fri, 23 Jul 2021 12:58:10 +0800</pubDate><description><![CDATA[1.新建DB启动.bat文件。

文件内容：


sqlplus / as sysdba @startup.sql&gt;startup.log

sqlplus / as sysdba @selectdual.sql&gt;selectdual.log

PAUSE


内容说明：

这个bat文件是在Oracle服务器端放置。

sqlplus / as sysdba(这个是连接oracle数据库)

@startup.sql&gt;startup.log(这个是执行[selectdual.s...]]></description><category></category></item><item><title><![CDATA[SQLServer 索引碎片清理(数据量少执行很慢)]]></title><link>https://blog.csdn.net/ningyingjun/article/details/118694692</link><guid>https://blog.csdn.net/ningyingjun/article/details/118694692</guid><author>ningyingjun</author><pubDate>Tue, 13 Jul 2021 12:18:06 +0800</pubDate><description><![CDATA[1.查找索引碎片大于50%


SELECT OBJECT_NAME(IND.OBJECT_ID) AS TABLENAME
      ,IND.NAME AS INDEXNAME
      ,INDEXSTATS.INDEX_TYPE_DESC AS INDEXTYPE
      ,INDEXSTATS.AVG_FRAGMENTATION_IN_PERCENT
  FROM SYS.DM_DB_INDEX_PHYSICAL_STATS(DB_ID() 
      ,NULL
      ,NULL]]></description><category></category></item><item><title><![CDATA[DataGridView设置复选框，滚动或列拖拽可以自动移动。]]></title><link>https://blog.csdn.net/ningyingjun/article/details/118334693</link><guid>https://blog.csdn.net/ningyingjun/article/details/118334693</guid><author>ningyingjun</author><pubDate>Tue, 29 Jun 2021 14:41:19 +0800</pubDate><description><![CDATA[1.在工具栏拖拽一个Checkbox放到画面上。

2.做一个方法设置checkbox的位置。


Private Sub checkboxSet()
    '取得grid的指定列的位置。(参数：0是列数)
    Dim rect As System.Drawing.Rectangle = datagridview.GetCellDisplayRectangle(0, -1, True)

    '有可能列有文字，所以checkbox需要微调一下位置。
    rect.Offset(15, 35)
]]></description><category></category></item><item><title><![CDATA[Oracle 修改单个用户密码永不过期。]]></title><link>https://blog.csdn.net/ningyingjun/article/details/118100751</link><guid>https://blog.csdn.net/ningyingjun/article/details/118100751</guid><author>ningyingjun</author><pubDate>Tue, 22 Jun 2021 10:11:43 +0800</pubDate><description><![CDATA[用户的密码期限是PROFILE文件控制的。

1.查询用户对应的PROFILE文件(一般是DEFAULT)：

 SELECT username,PROFILE FROM dba_users;



2.查看一下DEFAULT文件的各种属性。

 select distinct * from dba_profiles order by profile,RESOURCE_NAME



3.因为只想修改单个用户的，所以不能修改DEFAULT文件。

所以根据DEFAULT的属性创建一个新的TEST_U...]]></description><category></category></item></channel></rss>