0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Github Copilot

Posted at

Windows11のデスクトップにGithub Copilotのショートカットを作ります(それだけ)

# GitHub Copilotショートカット作成スクリプト
# デスクトップにGitHub Copilotサイトへのショートカットを作成します

# デスクトップのパスを取得
$desktop = [Environment]::GetFolderPath("Desktop")
$shortcutPath = "$desktop\GitHub Copilot.lnk"

# アイコンファイルのパス - このパスは実際のアイコンファイルの場所に変更してください
# 例: $iconPath = "C:\Path\To\GithubCopilot.ico"
$iconPath = "$env:USERPROFILE\Pictures\GithubCopilot.ico"

# アイコンファイルが存在するか確認
if (-not (Test-Path $iconPath)) {
    Write-Host "警告: 指定したアイコンファイルが見つかりません。デフォルトのアイコンを使用します。"
    # デフォルトのWebアイコンを使用
    $iconPath = "%SystemRoot%\System32\SHELL32.dll,14"
}

Write-Host "GitHub Copilotショートカットを作成しています..."

# WScript.Shellオブジェクトを作成
$shell = New-Object -ComObject WScript.Shell

# ショートカットオブジェクトを作成
$shortcut = $shell.CreateShortcut($shortcutPath)

# ショートカットのプロパティを設定
$shortcut.TargetPath = "https://github.com/copilot"
$shortcut.Description = "GitHub Copilot"
$shortcut.IconLocation = $iconPath

# ショートカットを保存
$shortcut.Save()

Write-Host "GitHub Copilotショートカットがデスクトップに作成されました。"
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?