วันศุกร์ที่ 19 ตุลาคม พ.ศ. 2555
แก้ไข ISA2006 RPC SERVER IS unavailable
Hi,
Set these keys:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\EnableRSS (set to 0)
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\EnableTCPA (set to 0)
EnableTCPChimney and EnableSecurityFilters (both 0)
For more information:
You may experience network-related problems after you install Windows Server 2003 SP2 or the Scalable Networking Pack on a Windows Small Business Server 2003-based computer that has an advanced network adapter
http://support.microsoft.com/kb/936594
also do not forget to install ISA Server Supportability Update package: http://support.microsoft.com/?kbid=939455
_____________________________
Tarek Majdalani
MS Forefront Edge Security MVP
Website : http://www.elmajdal.net
Covering ISA Server/TMG, Windows Server 2008 & Windows 7,Windows 8
Twitter : @elmajdal
Ref : http://forums.isaserver.org/m_2002051837/mpage_1/key_/tm.htm#2002051837
วันอังคารที่ 4 กันยายน พ.ศ. 2555
การใช้งาน Static Route จดไว้หน่อย
ไม่แน่ใจว่า ใช้โปรแกรม access connection หรือเปล่า ถ้าใช้ก็ต้องตั้งไว้ว่า เวลาเปลี่ยนโปรไฟล์แล้ว ไม่ให้มัน disconnect. ด้วยน่ะครับ ไม่งั้นบางครับมันจะตัดไปเลย แต่ว่าส่วนใหญ่ถ้าต่อด้ายสายแลนไม่เป็นไร แต่ว่าถ้าเป็น wireless ไม่ได้เลยนะครับ มันจะ power off wireless เลย
เอาละครับ เริมกันเลยน่ะ
1. เริ่มด้นด้วย การเสียบสายแลนปกติก่อน เครื่องน่าจะได้ IP จากตัว DHCP Server ของบริษัท เช้น 192.168.1.79 255.255.255.0 GW 192.168.1.1
2. เสียบ aircard แล้วก็ connect ให้เรียบร้อย น่าจะได้ IP จากทาง ISP (DTAC, AIS, TURE) เช่น 212.12.13.23 255.255.255.224 GW 212.12.13.23 (ส่วนมาก มันจะให้ GW เป็นเครื่องเราเองเลย)
3. ที่นี่ก็ทำการ route add ตามนี่เลยครับ คิดว่าการใช้งาน server ที่ทำงาน เค้าน่าจะมี IP address range ที่ขึ้นต้นด้วย 192.168.x.x ทั้งหมด แต่ถ้าที่บริษัทใช้ตัวอื่นด้วย ก็ add เพิ่มได้ครับ พิมพ์ตามนี้เลย
route add 192.168.0.0 mask 255.255.0.0 192.168.1.1 --> อันนี้เป็นการบอกว่า ถ้าไปกลุ่ม IP 192.168.x.x ให้ผ่านทาง 192.168.1.1
route add 0.0.0.0 mask 0.0.0.0 212.12.13.23 --> อันนี้เป็นการบอกว่า ถ้าไปที่ IP อื่นๆทั้งหมด ให้ผ่านทาง 212.12.13.23
เท่านี้ก็สามารถเล่นเน็ทพร้อมกับการเข้าใช้งาน server ที่ทำงานได้แล้วครับ
route add 192.168.0.0 mask 255.255.0.0 192.169.17.1
route add 192.169.0.0 mask 255.255.0.0 192.168.17.1
route add 0.0.0.0 mask 0.0.0.0 212.12.13.23
***
command One of these:
PRINT Prints a route
ADD Adds a route
DELETE Deletes a route
CHANGE Modifies an existing route
****
ถ้าWindows Vista ต้องใช้สิทธิ์ของ Admin ในการใช้คำสั่งน่ะครับ
รูปแบบ คำสั่งก็จะเป็น C:/> route add
ตัวอย่างเช่น
C:/> route add 172.25.30.250 mask 255.255.255.255 192.168.9.5 -P
ถ้าต้องการลบทิ้งก็
C:/> route delete 172.25.30.250
ROUTE [-f] [-p] [-4|-6] command [destination]
[MASK netmask] [gateway] [METRIC metric] [IF interface]
-f Clears the routing tables of all gateway entries. If this is
used in conjunction with one of the commands, the tables are
cleared prior to running the command.
-p When used with the ADD command, makes a route persistent across
boots of the system. By default, routes are not preserved
when the system is restarted. Ignored for all other commands,
which always affect the appropriate persistent routes. This
option is not supported in Windows 95.
-4 Force using IPv4.
-6 Force using IPv6.
command One of these:
PRINT Prints a route
ADD Adds a route
DELETE Deletes a route
CHANGE Modifies an existing route
destination Specifies the host.
MASK Specifies that the next parameter is the 'netmask' value.
netmask Specifies a subnet mask value for this route entry.
If not specified, it defaults to 255.255.255.255.
gateway Specifies gateway.
interface the interface number for the specified route.
METRIC specifies the metric, ie. cost for the destination.
All symbolic names used for destination are looked up in the network database
file NETWORKS. The symbolic names for gateway are looked up in the host name
database file HOSTS.
If the command is PRINT or DELETE. Destination or gateway can be a wildcard,
(wildcard is specified as a star '*'), or the gateway argument may be omitted.
If Dest contains a * or ?, it is treated as a shell pattern, and only
matching destination routes are printed. The '*' matches any string,
and '?' matches any one char. Examples: 157.*.1, 157.*, 127.*, *224*.
Pattern match is only allowed in PRINT command.
Diagnostic Notes:
Invalid MASK generates an error, that is when (DEST & MASK) != DEST.
Example> route ADD 157.0.0.0 MASK 155.0.0.0 157.55.80.1 IF 1
The route addition failed: The specified mask parameter is invalid.
(Destination & Mask) != Destination.
> route PRINT
> route PRINT -4
> route PRINT -6
> route PRINT 157* .... Only prints those matching 157*
> route ADD 157.0.0.0 MASK 255.0.0.0 157.55.80.1 METRIC 3 IF 2
destination^ ^mask ^gateway metric^ ^
Interface^
If IF is not given, it tries to find the best interface for a given
gateway.
> route ADD 3ffe::/32 3ffe::1
> route CHANGE 157.0.0.0 MASK 255.0.0.0 157.55.80.5 METRIC 2 IF 2
CHANGE is used to modify gateway and/or metric only.
> route DELETE 157.0.0.0
> route DELETE 3ffe::/32
Examples 2
ข้อมูลจาก https://www.thaithinkpad.com/forum/index.php?topic=7257.0
วันศุกร์ที่ 27 กรกฎาคม พ.ศ. 2555
วิธีแก้ Font ใน Adobe Acrobat Pro
1 Edit –> Preference
2 general
3 use single key accelerators
4 ลากแถบดำที่ข้อความใน textbox แล้วกด ctrl + e จะมีกรอบ properties tool bar ขึ้นมาเปลี่ยนขนาด font ตามใจชอบจ้า
***เรียก properties tool bar มาอย่างเดียว
#07-08-61 No current Selection เลือก TextBox หรือ ข้อความก่อน
วันเสาร์ที่ 14 กรกฎาคม พ.ศ. 2555
วิธียกเลิก package gprs ( internet package )
ยกเลิก Package Internet 12call-happy-dtac-true
ยกเลิก GPRS package internet ทรูมูฟ
วิธีการยกเลิก แพ็คเกจ edge/gprs true
- กด *9000 โทรออก ( ไม่คิดค่าโทร )
- กด 2 ยกเลิก Package internet
- หลังจากวางสายแล้ว รอรับ sms ยืนยันการยกเลิกค่ะ
- โทร *1004 (ฟังและกดตามระบบอัตโนมัติ) ไม่เสียค่าบริการ
กด 1 สมัครหรือยกเลิกแพ็คเกจอินเตอร์เน็ต
กด 9 เพื่อยกเลิก
- หรือโทร Call Center 1678 (ค่าบริการครั้งละ 3 บาท)
- กด *138 โทรออก ( ไม่คิดค่าโทร )
- กด 3 เลือก Package EDGE/GPRS
- กด 1 แบบรายเดือน
กด 2 แบบใช้ได้30วัน
กด 3 แบบรายวัน
(กด1หรือ2หรือ3 ตามแพ็คเกจปัจจุบันที่ท่านต้องการจะยกเลิก)
- กด 3 เพื่อยกเลิก ( กด 1 = ซื้อเพิ่ม , กด 2 = เปลี่ยน package )
- หลังจากวางสายแล้ว รอรับ smsยืนยันการยกเลิกค่ะ
วันศุกร์ที่ 3 กุมภาพันธ์ พ.ศ. 2555
วันพุธที่ 1 กุมภาพันธ์ พ.ศ. 2555
NtBackup
ขอแยกแบบ Copy ออกมาก่อน
การ Backup แบบ Copy นั้น จะทำการ Backup ข้อมูลที่เลือกไว้ ออกมาเป็นไฟล์ในรูปแบบของ NTBackup ซึ่งแบบ Copy นี้ จะไม่มีการบันทึกจุดที่ทำ ลงบนตารางการ Backup พูดง่ายๆ คือ เหมือน Copy ไฟล์ออกมาธรรมดานั่นเอง เพียงแต่จะถูก Compress ออกมาเป็นไฟล์เดียว คือ .bkf
ทีนี้ แบบ Normal , Incre , Diff จะมีความเกี่ยวเนื่องในจุดบันทึกการ Backup คือ
Normal จะเป็นการ Backup แบบ Full เหมือน Copy แต่จะมีการบันทึกไว้ในตารางการ Backup ด้วยว่า ได้ทำการ Normal Backup ไปเมื่อใด ซึ่งถ้าหากคุณทำ Normal อาทิตย์ละครั้ง แล้วจะลอง Restore ดู คุณจะเห็นรายการออกมาเป็นช็อตๆ เลยว่า ได้เคย Normal Backup ไปวัน และเวลาใดบ้าง ซึ่งถ้าหากเลือก Restore ในประเภทนี้ คุณก็จะได้ไฟล์ของวันนั้นออกมาทั้งหมดเลย
ส่วนแบบ Increment นั้น จะเป็นการ Backup ต่อจาก Normal โดยเลือกเฉพาะส่วนที่มีการเปลี่ยนแปลงเท่านั้น เช่น
วันอาทิตย์ คุณทำ Normal Backup
วันจันทร์ คุณแก้ไฟล์ A.txt แล้วก็ทำ Increment Backup
วันอังคาร คุณแก้ไฟล์ B.txt แล้วก็ทำ Increment Backup
วันพุธ คุณแก้ไฟล์ A.txt แล้วก็ทำ Increment Backup
เกิด ว่า วันพฤหัส ดิสก์คุณเสีย กรณนี้ คุณจะต้องเลือกการ Restore มาก่อน ซึ่งแน่นอนว่า คุณต้อง Restore วันล่าสุด ก็คือ วันพุธ ซึ่งเหตุการ Restore มีดังนี้
คุณเลือก Restore วันพุธเลย เพราะคุณได้ทำการ Increment Backup ไปแล้วล่าสุด สิ่งที่คุณจะได้คือ ไฟล์ A.txt เท่านั้น เพราะแบบ Increment มันจะเลือกเฉพาะส่วนที่มีการเปลี่ยนแปลงเท่านั้น
สิ่งที่คุณต้องทำคือ คุณต้อง Restore แบบ Normal ออกมาก่อน เพื่อให้ได้ไฟล์ทั้งหมด ของวันอาทิตย์
แล้ว ก็ไล่ Restore วันจันทร์ อังคาร พุธ ตามลำดับ คุณถึงจะได้ไฟล์ A.txt และ B.txt ออกมาอย่างสมบูรณ์ ซึ่งไฟล์ A.txt ก็จะเป็นไฟล์ที่ได้แก้ไขล่าสุดเมื่อวันพุธด้วย
กรณีเดียวกัน ถ้าคุณ Restore แบบ Normal ออกมาก่อน แล้วตามด้วย Increment ของวันพุธเลย คุณก็จะได้ไฟล์ทั้งหมดของวันอาทิตย์เช่นกัน แล้วก็จะได้ไฟล์ A.txt ล่าสุดด้วย แต่คุณจะไม่ได้ไฟล์ B.txt มา
จะเห็นว่า ถ้าเลือกแบบ Increment แล้ว จะใช้เวลาน้อย เพราะมันเลือกเฉพาะส่วนที่มีการเปลี่ยนแปลงเท่านั้น อะไรไม่เปลี่ยน มันไม่เก็บ แต่ ก็ต้องแลกกับการ Restore ที่นาน เพราะคุณต้องไล่มาตั้งแต่ Normal แล้วก็ไล่ Increment รายวันเลย
และแบบ Different จะเป็นการ Backup โดยมองส่วนที่มีการเปลี่ยนแปลงมาทั้งหมด เช่น
วันอาทิตย์ คุณทำ Normal Backup
วันจันทร์ คุณแก้ไฟล์ A.txt
วันอังคาร คุณแก้ไฟล์ B.txt
วันพุธ คุณแก้ไฟล์ A.txt แล้วก็ทำ Different Backup
หาก วันพฤหัส ดิสก์เสีย กรณีนี้ คุณก็ต้องเลือกการ Restore วันล่าสุดอีกเช่นกัน ถ้าคุณเลือก Restore ของวันพุธเลย สิ่งที่คุณจะได้ ก็คือ ไฟล์ A.txt และไฟล์ B.txt ทั้งหมด ซึ่งไฟล์ A.txt ก็จะเป็นไฟล์ล่าสุดเมื่อวันพุธด้วย
ดัง นั้น คุณเพียงแค่ Restore Normal ของวันอาทิตย์ออกมาก่อน จากนั้น คุณก็มา Restore Different ของวันพุธได้เลย เพราะ Different Backup มันจะมองย้อนกลับไปว่า ที่ผ่านมาหลังจาก Normal Backup คุณได้เปลี่ยนแปลงไฟล์อะไรไปบ้าง คุณก็จะได้ไฟล์ทั้งหมดของวันอาทิตย์ แล้วก็ไฟล์ที่เปลี่ยนแปลงมาตลอด 3 วันด้วย
ซึ่งจะเห็นว่า การ Backup แบบ Different นั้น จะใช้เวลานานกว่า เพราะมันต้องมองย้อนไปว่า มีอะไรที่ถูกเปลี่ยนแปลงบ้าง จึงเก็บมา Backup อะไรที่ไม่เปลี่ยน ก็ไม่เก็บ แต่ จะใช้เวลา Restore ในขั้นตอนที่น้อยกว่า เพราะไม่ต้องไล่มาทีละวัน เหมือน Increment
*** ข้อควรจำ ถ้า Backup Error ให้ Rename ชุดเก่าก่อนไม่งั้นหาย
วันอังคารที่ 8 พฤศจิกายน พ.ศ. 2554
การล้าง Printer และ Add ใหม่ (Network)
reg add HKCU\Printers\Connections
@start \\itcenter01\CanoniP1
วันเสาร์ที่ 17 กันยายน พ.ศ. 2554
วิธีแก้ไข Android เข้า Market ไม่ได้
จะใส่ account เราต้อง factory reset ก่อนนะครับ
Setting > Privacy > Factory Data Reset
boot ขึ้นมาค่อยใส่ gmail หลัก
การต่อ edge ต้องไปตั้งค่า APN สำหรับเครือข่ายมือถือที่ใช้อยู่ด้วยนะครับ
Setting > Wireless > Mobile Network > Access Point Names
ค่าดูจากนี้ครับ
http://www.droidsans.com/node/1660
วันเสาร์ที่ 30 กรกฎาคม พ.ศ. 2554
วิธีทำ load balance ทั้ง win xp และ win 7 หน่อยครับ

อย่าไปเรียกว่า Loadbalance ครับ ให้เรียกว่า MultiWan จะถูกต้องกว่าครับ
กรณี WinXP ทำโดยตัวมันเองไม่ได้ครับ... แต่ก็มีSoftwareหลายตั้วที่ทำได้(ซึ่งก็ไม่เห็นว่าจะWorkสักตัว)
ส่วนกรณี Windows 7 ทำได้ทันทีและง่ายมาก...
แนะนำเอาเป็นไกด์ไลน์นะครับ

- เริ่มจากหาทางเชื่อมเราเตอร์สองตัวเข้า Windows 7 ให้ได้ก่อน.. อาจใช้การ์ดแลนสองใบ หรือ ถ้ามีการ์ดแลนออนบอร์ดอันเดียว ก็สามารถเสียบเราเตอร์สองตัวเข้า"สวิตซิง"แล้วค่อยเขาการืดแลนก็ได้ครับ
- ตั้งเราเตอร์ทุกตัวให้มันทำงานเป็นGateway(เปิดPPPoE ให้เราเตอร์ทำหน้าติดต่ออินเตอร์เน็ตเอง)
- กรณีเครื่องคอมของเรามีการ์ดแลนสองใบ ก็ให้เข้าไปที่ หน้าเซตติง IPv4 ของการ์ดแลนใบนั้นๆ แล้วตั่งค่า Metric ให้เป็นเลขเดียวกัน เช่น เลข1ทั้งสองใบ.. เท่านี้ก็จะพร้อมใช้ทันที
- กรณีต่อเราเตอร์ผ่าน Switch.. แบบนี้ที่เราเตอร์ทุกตัวจะต้องตั้งค่าIPให้เราเตอร์แต่ล่ะตัว(ใช้DHCPที่เรา เตอร์ไม่ได้) แล้วให้เราตั้งค่า Gateway/DNS ของเราเตอร์แต่ล่ะตัวให้ครบ.. เท่านี้ก็จะพร้อมใช้ทันที
- สุดท้ายแถม เพื่อให้ Windows7 ทำงานกับ Multiwanได้ดีขึ้น ให้เข้าไปแก้ REG นิดหน่อย เพื่อให้ Window7มันทำการสุมWanทุกครั้งที่โอนถ่ายข้อมูล
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Parameters
แล้วให้เพิ่มDword Keys/Values ดังนี้
RandomAdapter = 1
SingleResponse = 1
* เมื่อทำแบบนี้แล้ว จะแก้ปัญหากรณีเน็ตสายใดสายนึงหลุดแล้วค้างได้ครับ
มันทำไม่ยากครับ ลองSearchในgoogleดูก็ได้ครับ มีรูป มีที่สอนทำเยอะแยะเลยครับ
(ลองขุดๆกระทู้เก่าๆดูนะครับ มีทั้งรูป แล้ววิธีการแนะนกันไว้เยอะแล้วครับ)
Ref http://www.overclockzone.com/forums/showthread.php/1271793-%E0%B8%82%E0%B8%AD%E0%B8%A7%E0%B8%B4%E0%B8%98%E0%B8%B5%E0%B8%97%E0%B8%B3-load-balance-%E0%B8%97%E0%B8%B1%E0%B9%89%E0%B8%87-win-xp-%E0%B9%81%E0%B8%A5%E0%B8%B0-win-7-%E0%B8%AB%E0%B8%99%E0%B9%88%E0%B8%AD%E0%B8%A2%E0%B8%84%E0%B8%A3%E0%B8%B1%E0%B8%9A
วันอังคารที่ 19 เมษายน พ.ศ. 2554
ERROR The terminal server has exceeded the maximum number of allowed connections

สืบเนื่องจากบทความที่แล้ว ต้องมีการ remote ไปยัง server บ่อยมาก
โดยปกติ windows server 2003 จากอนุญาติให้เข้าใช้ server ได้เพียง 2 session เท่านั้น
ปัญหาเกิดก็คือ user ของผมกับเพื่อนหลุดพร้อมๆ กัน ทำให้ session มัน disconnect ไม่ใช่ log off ทำให้ไม่สามารถเข้าใช้ซ้ำกันได้ เมื่อพยายามจะรีโมตมันก็ฟ้องว่า
"Terminal server has exceeded maximum number of allowed connection"
เลยต้องหาวิธีตามเน็ตก็พบว่า เพียงใช้คำสั่ง
mstsc /v:<ไอพีของเครื่องเซิร์ฟเวอร์> /f -admin
ก็จะ log in เข้าระบบได้ แต่บางบทความก็พบว่าให้ใช้คำสั่งนี้แทน
mstsc -v:<ไอพีของเครื่องเซิร์ฟเวอร์> /f -console
ref http://www.demoncodez.com/os-network/145-error-the-terminal-server-has-exceeded-the-maximum-number-of-allowed-connections.html
Batch File แก้ปญหา : “Terminal Server Has Exceeded the Maximum Number of Allowed Connections”
- สร้าง batch file ตาม code ทางด้านล่าง
- เปิด batch file
- ป้อน ชื่อ Server
- ป้อน Username
- ป้อน Password
- ใส่ ID ที่ต้องการ Reset Session
@ECHO OFF
SET EXEC=%SYSTEMROOT%\system32\dllcache
SET SERVER=
SET /P SERVER=Enter IP or server name: %=%
SET USER=
SET /P USER=Enter user name: %=%
SET PASS=
SET /P PASS=Enter password: %=%
NET USE \\%SERVER% /user:%USER% %PASS%
:START
%EXEC%\query session /server:%SERVER%
SET SID=
SET /P SID=Enter session ID to reset: %=%
%EXEC%\reset session %SID% /server:%SERVER%
SET CONT=
SET /P CONT=Reset more sessions? %=%
IF /i “%CONT%” EQU “y” GOTO START
SET REMOTE=
SET /P REMOTE=Launch remote desktop? %=%
IF /i “%REMOTE%” NEQ “y” GOTO END
mstsc /v:%SERVER% /f
:END
ref http://km.ru.ac.th/computer/?p=359
วันเสาร์ที่ 9 เมษายน พ.ศ. 2554
การทำโปรแกรม ปิง (Ping)
Public Class PingCheck_V2Dim tmp(10) As String
Private Sub PingCheck_V2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
string_ip()
Button1.Enabled = False
Button2.Enabled = True
timer_data()
End Sub
Private Sub string_ip()
tmp(1) = "xx.xx.xx.xx"
tmp(2) = ""xx.xx.xx.xx"
tmp(3) = ""xx.xx.xx.xx"
tmp(4) = "209.85.175.147" 'Google
tmp(5) = "xx.xx.xx.xx"
tmp(6) = "xx.xx.xx.xx"
tmp(7) = "xx.xx.xx.xx"
tmp(8) = "xx.xx.xx.xx"
tmp(9) ="xx.xx.xx.xx"
tmp(10) = "xx.xx.xx.xx"
End Sub
Private Sub check_ip(ByVal string_ip As String, ByVal tag_name As Integer)
If My.Computer.Network.Ping(string_ip) Then
alert_string(tag_name, Color.Green)
Else
alert_string(tag_name, Color.Red)
End If
End Sub
Private Sub alert_string(ByVal tag_name As Integer, ByVal string_color As Color)
For Each object_label As Object In Me.Controls
If TypeOf object_label Is Label Then
If CType(object_label, Label).Tag = tag_name Then
If string_color = Color.Red Then
CType(object_label, Label).ForeColor = Color.Red
Else
CType(object_label, Label).ForeColor = Color.Green
End If
End If
End If
Next
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Button1.Enabled = False
Button2.Enabled = True
PictureBox1.Image = ProPing.My.Resources.Resources.sonic
ProgressBar1.Value = 30
timer_data()
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Button1.Enabled = True
Button2.Enabled = False
PictureBox1.Image = ProPing.My.Resources.Resources.sonicwarp
ProgressBar1.Value = 0
Timer1.Stop()
Timer2.Stop()
Label1.ForeColor = Color.Orange
Label2.ForeColor = Color.Orange
Label3.ForeColor = Color.Orange
Label4.ForeColor = Color.Orange
Label5.ForeColor = Color.Orange
Label6.ForeColor = Color.Orange
Label7.ForeColor = Color.Orange
Label8.ForeColor = Color.Orange
Label9.ForeColor = Color.Orange
Label10.ForeColor = Color.Orange
End Sub
Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
Time_Count.Text = Time_Count.Text - 1
ProgressBar1.Value = Time_Count.Text
If Time_Count.Text = "0" Then
Time_Count.Text = "30"
timer_data()
End If
End Sub
Private Sub timer_data()
Timer1.Interval = 30000 '1000 = 1 วินาที
Timer1.Enabled = True
Timer2.Interval = 1000 '1000 = 1 วินาที
Timer2.Enabled = True
Time_Count.Text = "30" 'Now.Second
Timer1.Start()
Timer2.Start()
ProgressBar1.Minimum = 0
ProgressBar1.Maximum = 30
For i As Integer = 1 To 10
check_ip(tmp(i), i)
Next
End Sub
End Class
การ Import Excel ทั้งหมดลง Datagrid
Public Class Test_Import_ExcelDim sFilePath, sFileName As String
Dim sSlash As Single
Dim strConnection As System.Data.OleDb.OleDbConnection
Dim myPath As String = sFilePath & sFileName
Private Sub Test_Import_Excel_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'B a s s i e
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
With OpenFileDialog1
.Title = "Import Sage CSV file"
.InitialDirectory = "C:\Documents and Settings\htran\My Documents\vbnet\Welcome"
.Filter = "File (*.xls;*.csv;*.txt)|*.xls;*.csv;*.txt|All files (*.*)|*.*"
.ShowDialog()
sSlash = InStrRev(.FileName, "\")
sFilePath = Mid(.FileName, 1, sSlash)
sFileName = Mid(.FileName, sSlash + 1, Len(.FileName))
TextBox1.Text = .FileName
End With
myPath = sFilePath & sFileName
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Try
Dim objDataSet As System.Data.DataSet
Dim objAdapter As System.Data.OleDb.OleDbDataAdapter
strConnection = New System.Data.OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source='" & myPath & " '; " & "Extended Properties=Excel 8.0;")
objAdapter = New System.Data.OleDb.OleDbDataAdapter("select * from [sheet1$]", strConnection)
objDataSet = New System.Data.DataSet
objAdapter.Fill(objDataSet, "Customers")
DataGridView1.DataSource = objDataSet.Tables(0).DefaultView
strConnection.Close()
Catch ex As Exception
Dim er As String
strConnection.Close()
End Try
End Sub
End Class
การ Import Excel แบบเลือกจุดได้
Option Explicit On'Option Strict On
Imports Microsoft.Office.Interop
Imports System.Object
Imports System.Exception
Imports System.SystemException
Imports System.Runtime.InteropServices.ExternalException
Imports System.Runtime.InteropServices.COMException
Public Class Test_Import_Excel_V2
Dim sFilePath, sFileName As String
Dim sSlash As Single
Dim myPath As String
Private Sub Test_Import_Excel_V2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'B a s s i e
End Sub
Private Sub export_to_excel()
OpenLgExcel()
Dim xlAPP As Excel.Application
Dim xlWB As Excel.Workbook
Dim XlWs As Excel.Worksheet
xlAPP = CreateObject("Excel.Application")
'##########################################################################################
'EX
'xlWB = xlAPP.Workbooks.Open(Application.StartupPath & "\Template\" & "Invoice.xls"))
xlWB = xlAPP.Workbooks.Open(myPath)
'##########################################################################################
'EX
'XlWs = xlWB.Sheets("Invoice")
'XlWs = xlWB.Sheets(2)
XlWs = xlWB.Sheets(2)
'##########################################################################################
TextBox2.Text = XlWs.Range("D2").Value
xlAPP.Visible = True
xlAPP.Workbooks.Close()
xlAPP.Quit()
XlWs = Nothing
xlWB = Nothing
xlAPP = Nothing
CloseLgExcel()
End Sub
Public Sub OpenLgExcel()
System.Threading.Thread.CurrentThread.CurrentCulture = New System.Globalization.CultureInfo("en-US")
End Sub
Public Sub CloseLgExcel()
System.Threading.Thread.CurrentThread.CurrentCulture = New System.Globalization.CultureInfo("th-TH")
kill_process_Excel()
End Sub
Public Sub kill_process_Excel()
Try
Process.GetProcessesByName("EXCEL")(0).Kill()
Catch ex As Exception
End Try
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
With OpenFileDialog1
.Title = "Import Sage CSV file"
.InitialDirectory = "C:\Documents and Settings\htran\My Documents\vbnet\Welcome"
.Filter = "File (*.xls;*.csv;*.txt)|*.xls;*.csv;*.txt|All files (*.*)|*.*"
.ShowDialog()
sSlash = InStrRev(.FileName, "\")
sFilePath = Mid(.FileName, 1, sSlash)
sFileName = Mid(.FileName, sSlash + 1, Len(.FileName))
TextBox1.Text = .FileName
End With
myPath = sFilePath & sFileName
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
export_to_excel()
End Sub
End Class
วันจันทร์ที่ 28 มีนาคม พ.ศ. 2554
วิธีแก้ไขปัญหา เปิด Excel แล้วช้า

2.เลือกแบบพิเศษ เลือก วัตถุ กด Delete 1 ที แล้วเซฟ

เปิดแล้วปิดใหม่ จบ
อ้างอิงจาก http://www.excelexperttraining.com/forums/showthread.php?t=594&page=1
"ให้กด เลือกทั้งหมด และกด F5 สั่งค้นหา Object กด Delete 1 ครั้ง"
และก้อ Save ลองเปิดดูใหม่ เร็วแล้วครับ ( ขอบคุณเพื่อนใน MSN ครับ)
"ใน Sheet มี Object ซึ่งไม่ทราบว่ามันมาได้ไง เป็น Object ที่มองไม่เห็น จริง ๆ ด้วย"
วันพฤหัสบดีที่ 3 กุมภาพันธ์ พ.ศ. 2554
โหมด Auto P A S M ของกล้อง แตกต่างกันอย่างไร
เรามาดูกันดีกว่าว่าแต่ละโหมดมีหน้าที่อย่างไรกันบ้าง
Auto : ชื่อ ก็บอกอยู่แล้วว่า Auto ก็คือการทำงานของกล้องแบบอัตโนมัติ ไม่ว่าจะอยู่ในสถานการณ์ใดก็ตาม ท่านสามารถถ่ายได้อย่างรวดเร็ว กด "ฉับ" เดียวได้รูปเลยครับ แต่ก็ต้องแลกมาด้วยภาพที่อาจจะไม่ค่อยดีเท่าที่กล้องควรจะทำได้ ถ้าเราลองถ่ายในสภาพแสงที่น้อยๆ มีความแปรปรวนของสภาพแสงมากหน่อย การใช้โหมด Auto อาจไม่ใช่คำตอบครับ
P : ก็คือ Program โหมดนี้ก็คือโหมด Auto แปลงร่างมานั่นเอง ซึ่งการทำงานโหมดนี้ กล้องจะคำนวนรูรับแสงและความไวชัตเตอร์ ให้โดยอัตโนมัติ แต่เราสามารถกำหนด ISO และการชดเชยแสงได้ โหมดนี้เหมาะสำหรับคนที่พอควบคุมกล้องได้บ้าง ถ่ายสนุกดีครับ แต่ก็ยังไม่สามารถรีดประสิทธิภาพของกล้องได้ไม่เต็มที่เช่นเดียวกับโหมด Auto
A, AV : ก็คือ Aperture Priority เป็นโหมดที่เรากำหนดรูรับแสงเอง โดยกล้องจะคำนวณความไวชัตเตอร์ให้โดยอัตโนมัติ เหมาะกับการถ่ายภาพบุคคล หรือภาพอะไรก็ตาม ที่ต้องการกำหนดรูรับแสงไว้ค่าใดค่าหนึ่งเสมอ แต่มีข้อควรระวังคือ เราต้องคอยดูความไวชัตเตอร์ไว้เสมอ เพราะถ้าไม่พอภาพก็อาจจะเบลอ เสียได้ครับ ทาแก้ก็คือ ดันISO เพิ่มขึ้นครับ เราจะได้ความไวชัตเตอร์ที่มากขึ้น
S : ก็คือ Shutter Priority คือโหมดที่เรากำหนดความไวชัตเตอร์เอง โดยกล้องจำคำนวณรูรับแสงให้โดยอัตโนมัติ เหมาะกับการถ่ายแบบ แพนกล้อง ถ่ายภาพAction ภาพกีฬา หรือภาพใดๆที่เราต้องการหยุดการเคลื่อนไหวของแบบเอาไว้ แต่ระวังภาพมืดนะครับ ถ้าหากเราปรับความไวชัตเตอร์มากไป แต่ลืมดูไปว่ารูรับแสงกว้างพอสำหรับสภาพแสงขณะนั้นหรือไม่ ทางแก้ก็คือ ดันISO ช่วยอีกแล้วครับ ^ ^
M : Manual คือโหมดที่เราควบคุมกล้องเองทั้งหมด ไม่ว่าจะเป็นรูรับแสง หรือความเร็วชัตเตอร์ เป็นโหมดที่ทำให้เราสามารถสร้างสรรค์ภาพของเราได้อย่างเต็มที่ครับ อาจจะช้าสำหรับการปรับตั้งค่าก่อนถ่าย ทำให้ไม่เหมาะกับการถ่ายภาพที่ต้องเร่งรีบซักเท่าไหร่ เว้นแต่ใครที่ปรับเก่งๆ ไวๆ วัดแสงแม่นๆ ก็ทำให้กล้องสามารถ สร้างภาพถ่าย ที่ดีที่สุดออกมาได้ครับ
ref http://www.jirath.com/%E0%B8%9A%E0%B8%97%E0%B8%84%E0%B8%A7%E0%B8%B2%E0%B8%A1%E0%B8%96%E0%B9%88%E0%B8%B2%E0%B8%A2%E0%B8%A0%E0%B8%B2%E0%B8%9E/%E0%B9%82%E0%B8%AB%E0%B8%A1%E0%B8%94-Auto-P-A-S-M-%E0%B8%82%E0%B8%AD%E0%B8%87%E0%B8%81%E0%B8%A5%E0%B9%89%E0%B8%AD%E0%B8%87-%E0%B9%81%E0%B8%95%E0%B8%81%E0%B8%95%E0%B9%88%E0%B8%B2%E0%B8%87%E0%B8%81%E0%B8%B1%E0%B8%99%E0%B8%AD%E0%B8%A2%E0%B9%88%E0%B8%B2%E0%B8%87%E0%B9%84%E0%B8%A3-243
วันจันทร์ที่ 17 พฤษภาคม พ.ศ. 2553
วิธีการสร้าง USB Flash Drive ไว้ Boot และติดตั้ง Windows 7 หรือ Vista
เตรียมอุปกรณ์
1. USB Flash Drive ควรจะมีความจุ 4 GB
2. แผ่นติดตั้ง Windows 7 หรือ Vista
3. คอมพิวเตอร์ที่สามารถที่มี BIOS บูตผ่าน USB Flash Drive ได้
ครบแล้วมาเริ่มกันเลย
หมายเหตุ : ขั้นตอนการทำผมใช้เครื่องที่มี Vista ลงอยู่แล้ว
ขั้นตอนการทำ
1. เสียบ USB Flash Drive เข้ากับช่อง USB ของเครื่อง ถ้า USB Flash Drive ยังมีข้อมูลก็ย้ายไปเก็บที่อื่นก่อน เพราะจะต้องมีการ Format
2. เปิดหน้า Command Prompt โดยสิทธิของ Admin. โดยพิมพ์คำสั่ง CMD ที่ Start Menu search box แล้วกดปุ่ม Ctrl + Shift แล้ว Enter หรือ คลืกที่ปุ่ม Start menu > All Programs > Accessories > คลิกขวาบน Command Prompt และเลือก Run as administrator
3. ที่ Command Prompt พิมพ์ DISKPART แล้ว เสร็จให้พิมพ์คำว่า LIST DISK เพื่อตรวจดูว่า USB Flash Drive อยู่ที่ Disk เท่าไร คุณจะเห็นรายการ Disk ทั้งหมดของคุณ
4. ต่อมาให้คุณเลือก Disk ที่เป็น USB Flash Drive ของคุณ ในที่นี่ เป็น Disk 5 ให้คุณพิมพ์คำสั่งต่อไปนี้
SELECT DISK 5
-คำสั่งเลือก Disk 5 เป็น เป้าหมาย
CLEAN
-คำสั่งล้างข้อมูลทั้งหมดใน USB Flash Drive
CREATE PARTITION PRIMARY
-คำสั่งสร้าง Partition ให้เป็นแบบ Primary
SELECT PARTITION 1
-เมื่อสร้างแล้วก็เลือก Partition 1
ACTIVE
-คำสั่งตั้งให้ เป็น Active เพื่อทำการบูตได้
FORMAT FS=NTFS
-Format ให้มันเป็นแบบ NTFS
ASSIGN
EXIT
หมายเหตุ: ตลอดขั้นตอนที่ทำห้ามปิดหน้าต่าง Command Prompt นะครับ จะต้องใช้ในขั้นตอนต่อไป แต่ minimize ได้
5. เมื่อจบขั้นที่ 4 ให้คุณเอาแผ่น Windows 7 หรือ Vista ใส่ใน DVD Drive ของคุณ ตรวจสอบดูว่า DVD Drive เป็นอะไร เช่น D , E , F ให้เปิด My Computer ดู ในที่นี่ DVD Drive เป็น <> USB Flash Drive เป็น <>
6. มาที่หน้าต่าง Command Prompt จากข้อ 4 ให้พิมพ์
D:
CD BOOT
7. เมื่อหน้าต่าง Command Prompt มาอยู่ที่ D:boot> ให้พิมพ์คำสั่ง BOOTSECT.EXE /NT60 I: เพื่อสร้าง Bootcode ไว้ที่ USB Flash Drive เสร็จแล้ว ปิดหน้าต่าง Command Prompt ได้
8. ให้คุณก็อปปี้ ข้อมูลบนแผ่น Windows 7 หรือ Vista ทั้งหมดลงที่ USB Flash Drive ใช้ก็อปทาง My computer
9. คุณก็จะได้ USB Flash Drive ที่สามารถ Boot และติดตั้ง Windows 7 หรือ Vista ได้ เพียงคุณไปตั้ง BIOS ของเครื่องที่ต้องการติดตั้งให้บูต USB Drive เป็นอันดับแรก เท่านั้น
เครดิต : augie@pantip.com / Thaigaming
ref http://yayee.spaces.live.com/blog/cns!70EBD1A96D280F5D!7924.entry
วันจันทร์ที่ 10 พฤษภาคม พ.ศ. 2553
การทำ VPN บน Windows 2003 Server
บทนำ
ในที่นี้เครื่อง Windows 2003 Server ที่ใช้มี Network Card จำนวน 2 การ์ดคือ
1. เชื่อมต่ออินเตอร์เน็ตเป็น 202.129.16.28
2. เชื่อมต่อกับเครือข่ายภายใน เป็น 172.24.51.12
ความต้องการ
ต้องการให้สำนักงานในสังกัดหน่วยงานของตัวเองซึ่งอยู่ที่อื่น ๆ ที่มีการเชื่อมต่อกับเครือข่าย Internet แล้ว สามารถ Access เข้ามาใช้งานเครือข่ายภายในที่มี IP ของเครือข่ายเป็น 172.24.51.0/24 ได้
จึงต้องทำให้ Server ตัวนี้เป็น VPN Server เพื่อให้สำนักงานอื่น ๆ ที่เชื่อมต่อกับเครือข่าย Internet สามารถ Access เข้าสู่เครือข่าย 172.24.51.0/24 ได้ โดยให้เชื่อมมาที่ขานอกของ Server ที่มี IP เป็น 202.129.16.28 จากนั้น Server ก็จะจ่าย IP ที่เป็น Private ให้กับเครื่องที่เชื่อมเข้ามา และสามารถทะลุเข้าไปยังยังเครือข่าย 172.24.51.0/24 โดยผ่านการ์ดที่เป็น Private ของ Server ที่มี IP เป็น 172.24.51.12 ต่อไปได้
ขั้นตอนการทำ
1. ไปที่เมนู Start --> Administrative Tools --> Routing and Remote Access ดังรูปที่ 1
รูปที่ 1
2. แล้วจะได้ดังรูปที่ 2
รูปที่ 2
3. ให้คลิ๊กที่คำว่า Server Status แล้วเลือกเมนู Add Server ดังรูปที่ 3
รูปที่ 3
4. จะได้ดังรูปที่ 4 ให้เลือก This computer แล้วคลิ๊กปุ่ม OK
รูปที่ 4
5. แล้วจะได้ดังรูปที่ 5
รูปที่ 5
6. จากรูปที่ 5 ให้คลิ๊กที่ชื่อ Server แล้วเลือกเมนู Configure and Enable Routing and Remote Access ดังรูปที่ 6
รูปที่ 6
7. เมื่อได้ดังรูปที่ 7 ให้คลิ๊กปุ่ม Next
รูปที่ 7
8. เมื่อได้ดังรูปที่ 8 ให้เลือกรายการตามต้องการ ซึ่งถ้าต้องการทำ NAT ด้วยก็ให้เลือกรายการ Virtual Private Network (VPN) access and NAT แต่ในที่นี้เราต้องการทำ VPN อย่างเดียว ก็ให้เลือกรายการ Remote access (dial-up or VPN)
รูปที่ 8
9. เมื่อได้ดังรูปที่ 9 ให้เลือก VPN
รูปที่ 9
10. เมื่อได้ดังรูปที่ 10 ก็จะเป็นขั้นตอนการเลือกการ์ดแลนว่าการ์ดไหนเป็นการ์ดที่ติดต่อกับ Internet เพื่อ enable VPN clients ก็ให้เลือกการ์ดที่เชื่อมต่อกับ Internet ครับ
รูปที่ 10
11. เมื่อได้ดังรูปที่ 11 ก็จะเป็นขั้นตอนวิธีการจ่าย IP address ให้กับเครื่องที่ connect เข้ามา ซึ่ออาจจะใช้ DHCP Server หรือการกำหนดช่วงเอง ในที่นี้เลือกการกำหนดช่วงเอง ก็ให้เลือก From a specified range of address
รูปที่ 11
12. จากรูปที่ 12 ให้คลิ๊กปุ่ม New เพื่อการกำหนดค่า IP Address ที่จะจ่ายให้เครื่อง Client
รูปที่ 12
13. ให้ป้อนค่า IP address ที่จะจ่ายให้เครื่อง Client ดังรูปที่ 13
รูปที่ 13
14. เมื่อได้ดังรูปที่ 14 ให้คลิ๊กปุ่ม Next
รูปที่ 14
15. เมื่อได้ดังรูปที่ 15 ก็เป็นการกำหนดว่าจะให้มีการ Authenticate ผ่าน Radius Server หรือไม่ ในที่นี้ไม่ครับ
รูปที่ 15
16. เมื่อได้ดังรูปที่ 16 ให้คลิ๊กปุ่ม Finish
รูปที่ 16
17. รูปที่ 17 จะเกี่ยวกับ DHCP Server ซึ่งในที่นี้ไม่ใช้ก็ให้คลิ๊กปุ่ม OK
รูปที่ 17
18. เมื่อได้ดังรูปที่ 18 ให้คลิ๊กที่เครื่องหมาย +
รูปที่ 18
19. ก็จะได้ดังรูปที่ 19 เป็นอันเสร็จขั้นตอนครับ แต่ถ้ายังไม่ได้ทำ Static Route ก็ต้องทำซะด้วยนะครับ
รูปที่ 19
Ref http://www.itmanage.info/technology/windows/vpn_on_win_2003_server.html
วันจันทร์ที่ 29 มีนาคม พ.ศ. 2553
Fix Error Nul managerment Hp Serial
Document ID: c01442875
Version: 1
Release Date: 2008-04-25
Last Updated: 2008-04-25
Unknown devices may appear under the Other devices section of the Windows Device Manager after installing Windows Server 2003 or Windows Server 2008 on a ProLiant 100-Series G5 server (See Figure 1).
Figure 1: Unknown devices displayed under Other devices section of the Windows Device Manager.
This occurs because the appropriate drivers have not been installed on the ProLiant 100-Series G5 server running Windows Server 2003 or Windows Server 2008. The Unknown devices should be labeled as "HP Null Management Controller" and "Microsoft Generic IPMI Compliant Devices."
Any ProLiant 100-Series G5 server running Windows Server 2003 or Windows Server 2008.
The Unknown devices displayed in the Other devices section can be safely ignored if there is not a plan to use Windows Management Instrumentation (WMI). One of the Unknown devices should be labeled as "Microsoft Generic IPMI Compliant Device," which is used for WMI.
If WMI must be used, install the HP Null Management Controller driver and HP Null IPMI Controller driver, which will replace the Unknown device display in the Other devices section.
Choose one of the following methods to install the HP Null Management Controller driver and the HP Null IPMI Controller driver, depending on which operating system update version is planned to be used:
Method 1: For Windows Server 2003 SP2
If Windows Server 2003 SP2 is installed, perform the following:
- Install Windows Server 2003 SP2 and the chipset, NIC, and VGA drivers.
- Locate the Control Panel and choose Add/Remove Windows Components .
- Choose Management and Monitoring Tools .
- Choose Hardware Management to install KCS (CA2 CA3) driver by highlighting (do not check the box in front).
- Check the box next to Hardware Management.
- Choose OK in the 3rd Party Drivers box.
- Place the SP1 or the R2/Disk2 CD into the drive.
- Choose Finish in the Completing the Windows Components Wizard window.
- Locate the Device Manager and view the status.
- Install the HP release Smart-Package for IPMI driver (CA0 CA1) from the Support CD Version 2.0. This is located under the System devices section of the Device Manager, labeled HP Null Management Controller and Microsoft Generic IPMI Compliant Device (See Figure 2.)
Figure 2: HP Null Management Controller and Microsoft Generic IPMI Compliant Device.
Note: If Windows Server 2003 SP1 is already installed on the server, HP recommends updating to Windows Server 2003 SP2 prior to installing the drivers in the above procedure. If Windows Server 2003 SP1 was never installed on the server, it is necessary to first install SP1 prior to installing SP2.
Method 2: For Windows Server 2003 SP1
If Windows Server 2003 SP1 is currently installed and there are no plans to update to Windows Server 2003 SP2, perform the following to download the HP Null IPMI Controller Driver:
- Go to
- Select Software and Driver downloads.
- In the Search field type: "cp008390.exe."
- In the Search Results box select: HP NULL IPMI Controller Driver for Windows Server 2003 .
- Choose to download .
After downloading the HP Null IPMI Controller Driver, perform the following to download the HP Null Management Controller Driver:
- Go to
- Select Software and Driver downloads.
- In the Search field type: "cp008388.exe."
- In the Search Results box select: HP NULL IPMI Controller Driver for Windows Server 2003 x64 Editions.
- Choose to download .
| RECEIVE PROACTIVE UPDATES : Receive support alerts (such as Customer Advisories), as well as updates on drivers, software, firmware, and customer replaceable components, proactively via e-mail through HP Subscriber's Choice. Sign up for Subscriber's Choice at the following URL: |
| NAVIGATION TIP : For hints on navigating HP.com to locate the latest drivers, patches, and other support software downloads for ProLiant servers and Options, refer to the Navigation Tips document . SEARCH TIP : For hints on locating similar documents on HP.com, refer to the Search Tips document . |
วันพุธที่ 10 กุมภาพันธ์ พ.ศ. 2553
Logon Script Map Drive แบบกำหนด User/Password
Map Drive z จาก Share File ที่ชื่อ Public จากเครื่อง 192.168.xx.xx ซึ่งเป็น Domain ชื่อ test.com ซึ่ง มี Username = test และ Password = 123456 ในการเข้าถึงได้แบบ Full Control
net use z: /delete /yes
net use z: \\192.168.xx.xx\Public /user:test.com\test "123456" /persistent:yes
Ex. Struct
===========
net use y: /delete /yes
net use y: \\Ipaddress\Folder /user:domain\user "password" /persistent:yes
===========
ใส่ Notepad แล้ว Save เป็น login.bat นำไปไว้ที่
C:\WINDOWS\SYSVOL\sysvol\rujirapong.com\scripts
ของเครื่อง Domain
หลังจากนั้นเปิด Active Directory Users and Computers ขึ้นมา แล้วคลิ๊กขวาที่ User ที่ต้องการจะทำ Logon Script โดยเลือก Properties
ไปที่ Tab Profile ในช่อง Logon Script ระบุ login.bat
จบ