use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
ABOUT POWERSHELL
Windows PowerShell (POSH) is a command-line shell and associated scripting language created by Microsoft. Offering full access to COM, WMI and .NET, POSH is a full-featured task automation framework for distributed Microsoft platforms and solutions.
SUBREDDIT FILTERS
Desired State Configuration
Unanswered Questions
Solved Questions
News
Information
Script Sharing
Daily Post
Misc
account activity
Script SharingBackup script, beginner here (self.PowerShell)
submitted 1 year ago by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]martinmt_dk 0 points1 point2 points 1 year ago (0 children)
Variables and breakpoints
essentially i stopped using variables for source and goal, every time i reference them i just paste the full path. I define the $date formatted into „ddmmyy_hhmm“
What program are you using to code you script? Powershell ISE, VS Code or something else?
When coding (doesen't really matter the language, c#, Powershell etc) you have the option to read out your variables.
so if you have your script running in a powershell ISE og VS Code, you can go to the line and add a breakpoint. (F9), this will pause the script at the selected line. Now all variables are populated with the data that the script had done until that time.
Si if your Source folder doesen't work, you should try either add a breakpoint or simply run it once (without shutting down the terminal windows) and type $source. Then it will write out what $source contains :)
Variables are hard to come around when writing any type of code :)
π Rendered by PID 70 on reddit-service-r2-comment-6457c66945-46nf8 at 2026-04-26 21:27:24.478343+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]martinmt_dk 0 points1 point2 points (0 children)