rem ในกรณีที่ต้องการ dir แล้วเก็บเป็น file
rem dir b* /b > data.txt
for /F "eol=; tokens=1,2 delims=," %%A in (data.txt) do (
IF NOT EXIST %%A. (
mkdir %%A
)
ELSE
(
ECHO %%A FOLDR WAS EXIST
)
)
**************End File*********
File data.txt
A1,I
B1,J
C1,K
D1,L
E1,M
ผลจะสร้าง folder A1,B1,C1,D1,E1
Friday, May 21, 2010
Tuesday, April 27, 2010
เข้าวินโดว์เอ้กซ์พีโดยอัตโนมัติ - Automatic Logon in Windows XP
พิมพ์ ในช่อง run
control userpasswords2
แต่ถ้าต้องการให้ auto ทำที่ regedit ด้วย
If you want to bypass the automatic logon to log on as a different user, hold down the SHIFT key after you log off or after Windows XP restarts. Note that this procedure applies only to the first logon. To enforce this setting for future logoffs, the administrator must set the following registry key:
control userpasswords2
แต่ถ้าต้องการให้ auto ทำที่ regedit ด้วย
- Click Start, click Run, type regedit, and then click OK.
- Locate the following registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
- Using your account name and password, double-click the DefaultUserName entry, type your user name, and then click OK.
- Double-click the DefaultPassword entry, type your password under the value data box, and then click OK.
If there is no DefaultPassword value, create the value. To do this, follow these steps:- In Registry Editor, click Edit, click New, and then click String Value.
- Type DefaultPassword as the value name, and then press ENTER.
- Double-click the newly created key, and then type your password in the Value Data box.
- Double-click the AutoAdminLogon entry, type 1 in the Value Data box, and then click OK.
If there is no AutoAdminLogon entry, create the entry. To do this, follow these steps:- In Registry Editor, click Edit, click New, and then click String Value.
- Type AutoAdminLogon as the value name, and then press ENTER.
- Double-click the newly created key, and then type 1 in the Value Data box.
- Quit Registry Editor.
- Click Start, click Restart, and then click OK.
If you want to bypass the automatic logon to log on as a different user, hold down the SHIFT key after you log off or after Windows XP restarts. Note that this procedure applies only to the first logon. To enforce this setting for future logoffs, the administrator must set the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
Value:ForceAutoLogon
Type: REG_SZ
Data: 1
You can also use turn on automatic logon without editing the registry in Microsoft Windows XP Home Edition and in Microsoft Windows XP Professional on a computer that is not joined to a domain. To do this, follow these steps:Value:ForceAutoLogon
Type: REG_SZ
Data: 1
- Click Start, and then click Run.
- In the Open box, type control userpasswords2, and then click OK.
Note When users try to display help information in the User Accounts window in Windows XP Home Edition, the help information is not displayed. Additionally, users receive the following error message:Cannot find the Drive:\Windows\System32\users.hlp Help file. Check to see that the file exists on your hard disk drive. If it does not exist, you must reinstall it. - Clear the "Users must enter a user name and password to use this computer" check box, and then click Apply.
- In the Automatically Log On window, type the password in the Password box, and then retype the password in the Confirm Password box.
- Click OK to close the Automatically Log On window, and then click OK to close the User Accounts window.
reference : http://support.microsoft.com/kb/315231
Friday, April 02, 2010
Deny Access to the Display Settings (All Windows)
Open your registry and find or create the key below.
Create a new DWORD value, or modify the existing value, called "NoDispCPL" and set it according to the value data below.
Exit your registry; you may need to restart or log out of Windows for the change to take effect.
Registry Settings
User Key: [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System]
System Key: [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\
System]
Value Name: NoDispCPL
Data Type: REG_DWORD (DWORD Value)
Value Data: (0 = disabled, 1 = enabled)
Reference : http://www.pctools.com/guides/registry/detail/167
Monday, March 29, 2010
Using Netsh to Backup and Restore Network Configuration
Netsh is a very powerful network configuration tool that allows you to change virtually every network related setting on your computer. One of the useful things it allows you to do is backup and restore your network configuration settings.
Use the following command to backup your network configuration:
netsh interface dump > netcfg.dat
Use the following command to restore your network configuration:
netsh exec netcfg.dat
This is very useful for those who travel to various network environments throughout the day. By setting up a few batch files you can have your entire network configuration change to suit the current network you are in with just the click of a mouse.
reference : http://www.windowsnetworking.com/kbase/WindowsTips/Windows2003/AdminTips/Network/UsingNetshtoBackupandRestoreNetworkConfiguration.html
Use the following command to backup your network configuration:
netsh interface dump > netcfg.dat
Use the following command to restore your network configuration:
netsh exec netcfg.dat
This is very useful for those who travel to various network environments throughout the day. By setting up a few batch files you can have your entire network configuration change to suit the current network you are in with just the click of a mouse.
reference : http://www.windowsnetworking.com/kbase/WindowsTips/Windows2003/AdminTips/Network/UsingNetshtoBackupandRestoreNetworkConfiguration.html
Wednesday, March 24, 2010
Blue Screen after clone with Vmware Converter
How to fix it? Here are my steps: - Open the VMware Converter and start the Configuration tools;
- Choose your VM machines image to reconfigure;
- In the TAP “View/Edit Options”, choose the option “Reconfigure destination virtual machine”, then complete the reconfiguration;
- Reboot your virtual machine and follow the reconfigure steps. You may require new Windows SN to finish it.
- Once you can log on, job is done.
Monday, March 15, 2010
Check folder permission
ใช้ command "cacls"
reference http://www.computerperformance.co.uk/w2k3/utilities/cacls.htm
reference http://www.computerperformance.co.uk/w2k3/utilities/cacls.htm
Wednesday, February 10, 2010
Stored user names and passwords
เช็คดู user ที่windows จำเก็บไว้ในเครื่อง
rundll32.exe keymgr.dll,KRShowKeyMgr
rundll32.exe keymgr.dll,KRShowKeyMgr
Friday, February 05, 2010
Monday, January 04, 2010
Htc TATTOO
Monday, December 14, 2009
เที่ยวระยอง
เดินงานภูมิบุรี ศรีระยอง
ถ้าใครเคยไปเดินปายล่ะก็บรรยากาศเดียวกันเลย ต่างกันที่ อากาศกับ สาวๆเท่านั้น ที่ไม่ใช่ สาวเหนือกับชาวเขา

ส่วนมากก็มีอาหารการกินตลอดทางเดิน แล้วก็มีบ้านเก่าๆอยู่บ้าง

อันนี้น้ำมะพร้าวในกระบอกไม่ไผ่ ราคาตามป้าย

เดินไปเริ่มหิว(ทั้งที่กินตลอดทางเดินแล้ว) ย้ายก้นไปนั่งที่ร้าน นายดล
สั่งปลา 1 ตัวทำกับข้าว 3 อย่าง
1.ผัด ??? อะไรจำไม่ได้
1.ปลาทอดราดน้ำปลา
3.ต้มยำ หม้อไฟ
ส่วนนี้คือ ผัดยอดมะระ
อิ่มจัง
อ้อ มีส้มโอด้วย เขาเอามาแจกตอนมานั่ง(ชิม)
เช้าวันใหม่กะว่าจะไปทุ่งทานตะวันนัดกัน แปดโมงเช้าวันอาทิตย์
ZzZZzzz.......
เช้ารุ่งขึ้น
แปดโมง ...
แปดโมงครึ่ง....
เก้าโมง ได้เวลาออกจากบ้านไปถึงก็เก้าโมงกว่าๆ ผู้โดยสาร 7 คน รถ soluna เบียดกันพอหอมปากหอมคอ
ต้นยังเล็กอยู่ คาดว่าเพิ่งปลูกไม่นาน แต่ดอกใหญ่มาก(ต้นประถมดอกมหาลัย)


เบื้องหลังการถ่ายทำ
แดดร้อนมากขอบอก แต่นางแบบเราไม่เคยกลัว โพสได้ทุกท่าทุกสภาพอากาศ
ใกล้เที่ยงหิวอีกแล้ว ไปกินก๋วยเตี๋ยวแกงส้ม แกงส้มจิงๆใส่เส้นก๋วยเตี๋ยว
เกี๋ยวแกงส้ม สุดยอดเหมือนกัน

ลวกจิ้ม กุ้ง ปลา



After
ดูไม่ออกเลยว่า รับประทานอะไรเข้าไป

อร่อยดีครับ ไม่เผ็ดด้วย !!! อยากกินอีกจัง..... ^-^
ถ้าใครเคยไปเดินปายล่ะก็บรรยากาศเดียวกันเลย ต่างกันที่ อากาศกับ สาวๆเท่านั้น ที่ไม่ใช่ สาวเหนือกับชาวเขา

ส่วนมากก็มีอาหารการกินตลอดทางเดิน แล้วก็มีบ้านเก่าๆอยู่บ้าง
อันนี้น้ำมะพร้าวในกระบอกไม่ไผ่ ราคาตามป้าย
เดินไปเริ่มหิว(ทั้งที่กินตลอดทางเดินแล้ว) ย้ายก้นไปนั่งที่ร้าน นายดล
สั่งปลา 1 ตัวทำกับข้าว 3 อย่าง
1.ผัด ??? อะไรจำไม่ได้
1.ปลาทอดราดน้ำปลา
3.ต้มยำ หม้อไฟส่วนนี้คือ ผัดยอดมะระ
อิ่มจังอ้อ มีส้มโอด้วย เขาเอามาแจกตอนมานั่ง(ชิม)
เช้าวันใหม่กะว่าจะไปทุ่งทานตะวันนัดกัน แปดโมงเช้าวันอาทิตย์
ZzZZzzz.......
เช้ารุ่งขึ้น
แปดโมง ...
แปดโมงครึ่ง....
เก้าโมง ได้เวลาออกจากบ้านไปถึงก็เก้าโมงกว่าๆ ผู้โดยสาร 7 คน รถ soluna เบียดกันพอหอมปากหอมคอ
ต้นยังเล็กอยู่ คาดว่าเพิ่งปลูกไม่นาน แต่ดอกใหญ่มาก(ต้นประถมดอกมหาลัย)

เบื้องหลังการถ่ายทำ
แดดร้อนมากขอบอก แต่นางแบบเราไม่เคยกลัว โพสได้ทุกท่าทุกสภาพอากาศ
ใกล้เที่ยงหิวอีกแล้ว ไปกินก๋วยเตี๋ยวแกงส้ม แกงส้มจิงๆใส่เส้นก๋วยเตี๋ยว
เกี๋ยวแกงส้ม สุดยอดเหมือนกัน
ลวกจิ้ม กุ้ง ปลา


After
ดูไม่ออกเลยว่า รับประทานอะไรเข้าไป

อร่อยดีครับ ไม่เผ็ดด้วย !!! อยากกินอีกจัง..... ^-^
Thursday, September 03, 2009
Export -Import DHCP
Export from w2003
netsh dhcp server export c:\dhcp.txt all
Import to w2003
netsh dhcp server import c:\dhcp.txt all
อ้างอิง http://support.microsoft.com/kb/325473
netsh dhcp server export c:\dhcp.txt all
Import to w2003
netsh dhcp server import c:\dhcp.txt all
อ้างอิง http://support.microsoft.com/kb/325473
Delete Fail DCs from active Directory
หาก มีเครื่อง Dc แล้วไม่สามารถ Depromo ได้ หรือ มีปัญหา เกี่ยวกับ operation master
ให้ใช้ tool ที่ชื่อ Ntdsutil.exe เข้าไปลบ NTDS setting object ใน mode metadata
จากนั้น ก็ check
1.Active directory sites and services
2.Active directory users and computers
3.DNS
อ้างอิง www.petri.co.il/delete_failed_dcs_from_ad.htm
ให้ใช้ tool ที่ชื่อ Ntdsutil.exe เข้าไปลบ NTDS setting object ใน mode metadata
จากนั้น ก็ check
1.Active directory sites and services
2.Active directory users and computers
3.DNS
อ้างอิง www.petri.co.il/delete_failed_dcs_from_ad.htm
Wednesday, July 08, 2009
windows Auto logon
เข้า Start > RUN > Regedit
มองหา HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
ใส่ค่าใน DefaultUserName ให้เป็นชื่อ Login ของเราที่ต้องการ เช่น Adiministrator ส่วน
DefaultPassword ให้เป็นที่เราตั้งไว้ (ถ้าไม่มี DefaultPassword ให้เพิ่มเป็นแบบ String แล้วใส่ค่า Password)
AutoAdminLogon ให้ใส่ค่าว่าเป็น 1แล้ว Restart เครื่อง OK
หรือ
start->control userpasswords2 แล้ว ติ๊ก เครื่องหมายถูกออก
มองหา HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
ใส่ค่าใน DefaultUserName ให้เป็นชื่อ Login ของเราที่ต้องการ เช่น Adiministrator ส่วน
DefaultPassword ให้เป็นที่เราตั้งไว้ (ถ้าไม่มี DefaultPassword ให้เพิ่มเป็นแบบ String แล้วใส่ค่า Password)
AutoAdminLogon ให้ใส่ค่าว่าเป็น 1แล้ว Restart เครื่อง OK
หรือ
start->control userpasswords2 แล้ว ติ๊ก เครื่องหมายถูกออก
logon script .reg in GPO
ในที่นี้ต้องการ disable system restore ของ winxp โดยใช้ GPO

โดย name ใส่ regedit.exe และ parameter ใส่ /s ตามด้วย file.reg
-----ใน file turnoff_sys_restore.reg-----
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore]"DisableSR"=dword:00000001

โดย name ใส่ regedit.exe และ parameter ใส่ /s ตามด้วย file.reg
-----ใน file turnoff_sys_restore.reg-----
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore]"DisableSR"=dword:00000001
Wednesday, June 03, 2009
Windows Genuine Advantage
เนื่องจากเดี๋ยวนี้ทางไมโครซอฟเขาทำตัวอัฟเดทขึ้นมาใหม่เพื่อเช็คว่า
CD-KEY Windows ของท่านนั้นซ้ำกับใครไหมท่าตัวอัฟเดทตรวจเจอว่า
ซ้ำเครื่องคุณก็กลายเป็น Windowsปลอมทันทีครับ แต่เราสามารถแก้ได้ครับ โดย
load program RemoveWGA 1.2 มาครับ แล้ว next next ...
แล้วก็ restart ครับ สามารถ load ได้จาก ที่นี่
(ไม่แน่ใจว่า link ยังอยู่หรือป่าว นะ)
http://www.softpedia.com/get/Tweak/Uninstallers/RemoveWGA.shtml
Sunday, May 24, 2009
เที่ยวฉะเชิงเทรา
เที่ยวฉะเชิงเทรา
ที่แรก ไปหลวงพ่อโสธร เดินทาง จาก กรุงเทพ ไปทาง รามอินทรา - สุวินทวงศ์
สะพานเยอะเหมือนกัน ระหว่างทางไป ไป ถึงประมาณ 9.00 รถยังไม่มาก จอดรถ ที่ สถานที่จอดฟรี ของ วัด

ภายในวัด


ใกล้ๆกับวัดมี โรงเจ
แผนที่ ติดอยู่ข้างรถ นำเที่ยว

เดินทางไปต่อ ตลาดบ้านใหม่ อยู่ไม่ไกลมาก
รถตุ๊กๆทำจาก กระป๋องเป๊ปซี่
ของเล่นเก่า มีที่บีบ แล้วตุ๊กตาจะเดินตาม
บ้านเรือนริม แม่น้ำ
ของเล่นเก่าๆ
พักทานข้าว เมนูนี้ ต้มยำปลากระพง
ยำหอยแครง
ผัด ปลากระพงขึ้นช่าย หมดไป 300 กว่าบาท


ตุ๊กแก ตัว เบ้อเร่อ เลย
















ที่แรก ไปหลวงพ่อโสธร เดินทาง จาก กรุงเทพ ไปทาง รามอินทรา - สุวินทวงศ์
สะพานเยอะเหมือนกัน ระหว่างทางไป ไป ถึงประมาณ 9.00 รถยังไม่มาก จอดรถ ที่ สถานที่จอดฟรี ของ วัด

ภายในวัด


ใกล้ๆกับวัดมี โรงเจ
แผนที่ ติดอยู่ข้างรถ นำเที่ยว
เดินทางไปต่อ ตลาดบ้านใหม่ อยู่ไม่ไกลมาก
รถตุ๊กๆทำจาก กระป๋องเป๊ปซี่
ของเล่นเก่า มีที่บีบ แล้วตุ๊กตาจะเดินตาม
บ้านเรือนริม แม่น้ำ
ของเล่นเก่าๆ
พักทานข้าว เมนูนี้ ต้มยำปลากระพง
ยำหอยแครง
ผัด ปลากระพงขึ้นช่าย หมดไป 300 กว่าบาท

ตุ๊กแก ตัว เบ้อเร่อ เลย















Subscribe to:
Posts (Atom)
