[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
Hi /g/, I want to write a script but I'm not sure how to
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 10
Thread images: 1
File: UI3l0Ma[1].jpg (12 KB, 1080x720) Image search: [Google]
UI3l0Ma[1].jpg
12 KB, 1080x720
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.
Thread replies: 10
Thread images: 1

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.