Câu trả lời:
Tôi thích Console , Nó hỗ trợ tính minh bạch cũng như các dấu nhắc lệnh được gắn thẻ.
Nếu bạn đang tìm kiếm một hiệu ứng aero thủy tinh, bạn có thể sử dụng Glass CMD .
Để làm cho tất cả các cửa sổ cmd và powershell hiện đang chạy của bạn trong suốt, hãy chạy nó trong một thiết bị đầu cuối powershell (các cửa sổ được mở sau khi bạn chạy này, sẽ không trong suốt và hệ thống của bạn sẽ không được sửa đổi):
$user32 = Add-Type -Name User32 -Namespace Win32 -PassThru -MemberDefinition '[DllImport("user32.dll")]public static extern int GetWindowLong(IntPtr hWnd, int nIndex);[DllImport("user32.dll")]public static extern int SetWindowLong(IntPtr hWnd, int nIndex, int dwNewLong);[DllImport("user32.dll", SetLastError = true)]public static extern bool SetLayeredWindowAttributes(IntPtr hWnd, uint crKey, int bAlpha, uint dwFlags);'
Get-Process | Where-Object { @('powershell', 'cmd') -contains $_.ProcessName } | % {$user32::SetWindowLong($_.MainWindowHandle, -20, ($user32::GetWindowLong($_.MainWindowHandle, -20) -bor 0x80000));$user32::SetLayeredWindowAttributes($_.MainWindowHandle, 0, 200, 0x02)}
Để làm cho các cửa sổ thiết bị đầu cuối powershell của bạn luôn trong suốt (điều này làm thay đổi tệp hồ sơ powershell dành riêng cho người dùng của bạn):
if (-not Test-Path -Path $profile) { New-Item -path $profile -type file -force }
Add-Content -Path $profile -Value '$user32 = Add-Type -Name ''User32'' -Namespace ''Win32'' -PassThru -MemberDefinition ''[DllImport("user32.dll")]public static extern int GetWindowLong(IntPtr hWnd, int nIndex);[DllImport("user32.dll")]public static extern int SetWindowLong(IntPtr hWnd, int nIndex, int dwNewLong);[DllImport("user32.dll", SetLastError = true)]public static extern bool SetLayeredWindowAttributes(IntPtr hWnd, uint crKey, int bAlpha, uint dwFlags);'''
Add-Content -Path $profile -Value 'Get-Process | Where-Object { @(''powershell'', ''cmd'') -contains $_.ProcessName } | % { $user32::SetWindowLong($_.MainWindowHandle, -20, ($user32::GetWindowLong($_.MainWindowHandle, -20) -bor 0x80000)) | Out-Null;$user32::SetLayeredWindowAttributes($_.MainWindowHandle, 0, 200, 0x02) | Out-Null }'
Hãy xem PowerCmd, xem thêm Trình giả lập Terminal với các bảng phân chia cho Windows 7 (64 bit)