Hi /g/,
I want to write a script but I'm not sure how to get started. I want to write it myself but I'm looking for guidance on where to get started. Do I use Powershell, batch file, command line, can Autohotkey handle it?
What I want to do, in bullet points
-search client directory eg. c:\client\smith, john
-create a folder 'Correspondence' eg. c:\client\smith, john\ correspondence
-search for all files wth .msg extension
-cut and paste into 'Correspondence folder'
I intend to use this on Windows Server 2012 R2
thanks in advance
Google "batch tutorial".
You're welcome.
powershell or batch.
>command line
same as batch
check this out for command reference
http://ss64.com/
This is literally one line. Two if you have brain problems.
mkdir -p "path/to/john smith/correspondence"; mv *.msg $_
>>53659674
>>53659777
Use perl or python. these guys are stuck in the last century
>>53660606
Why introduce dependencies for something this simple?
>>53660825
Because batch is toxic and not worth learning past basic commands. Also learning a scripting language will be beneficial
>>53659642
I know you
Powershell is pretty great for stuff like this. I use it for sysadmin stuff everyday. It's natively installed on any modern Windows system, way more flexible then batch, on top of having easier syntax.