Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
#Creates direct links to Big Fish Games write-host "Searching for Games..." #get directories $folders = Get-ChildItem -Path "c:\program files" -recurse -include *.bfg| select Directory #remove duplicates $folders = $folders|sort-object | Get-Unique -AsString foreach($folder in $folders){ $f = $folder.Directory.FullName $file = Get-ChildItem $f -force| Where-Object {$_.mode -match "h"} write-host "Creating desktop shortcut for $file" #create desktop shortcut $WshShell = New-Object -comObject WScript.Shell $Shortcut = $WshShell.CreateShortcut("$Home\Desktop\$file.lnk") $Shortcut.TargetPath = "$f\$file" $Shortcut.WorkingDirectory = "$f\" $Shortcut.Save() }
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)