Sarbian changed the topic of #kspmodding to: Welcome to #kspmodding - the channel for discussing, and learning about, modding Kerbal Space Program. Code of Conduct: https://git.io/vSQh6 | Always provide logs. | *** PSA: https://kerbalspaceprogram.com/api/index.htm | Someone is writting a Phd dissertation on KSP modding please fill out this survey https://goo.gl/forms/1vrkPYH4az8l32sb2 - I have met him and it s legit
blowfish has quit [Quit: Leaving]
Ezriilc has quit [Quit: Going offline, see ya! (www.Kerbaltek.com)]
blowfish has joined #kspmodding
taniwha has quit [Quit: ZNC - http://znc.in]
taniwha has joined #kspmodding
taniwha has quit [Quit: ZNC - http://znc.in]
riocrokite has joined #kspmodding
blowfish has quit [Quit: Leaving]
ferram4 has quit [Read error: Connection reset by peer]
ferram4 has joined #kspmodding
Technicalfool_ has joined #kspmodding
Technicalfool has quit [Ping timeout: 183 seconds]
riocrokite has quit [Quit: http://www.mibbit.com ajax IRC Client]
Chervilpaw has joined #kspmodding
Chervilpaw has left #kspmodding [#kspmodding]
BasharMilesTeg has quit [Read error: Connection reset by peer]
taniwha has joined #kspmodding
BasharMilesTeg has joined #kspmodding
Rokker has quit [Quit: Connection closed for inactivity]
Rokker has joined #kspmodding
taniwha has quit [Quit: ZNC - http://znc.in]
taniwha has joined #kspmodding
taniwha has quit [Ping timeout: 200 seconds]
Starwaster has quit [Quit: Leaving]
taniwha has joined #kspmodding
taniwha has quit [Ping timeout: 200 seconds]
taniwha has joined #kspmodding
taniwha_ has joined #kspmodding
taniwha has quit [Read error: Connection reset by peer]
taniwha_ is now known as taniwha
Qboid was kicked from #kspmodding by *status [You have been disconnected from the IRC server]
Qboid has joined #kspmodding
blowfish has joined #kspmodding
Ezriilc has joined #kspmodding
blowfish has quit [Quit: This computer has gone to sleep]
blowfish has joined #kspmodding
Technicalfool_ has quit [Remote host closed the connection]
Technicalfool_ has joined #kspmodding
Asymptote has joined #kspmodding
blowfish has quit [Quit: Leaving]
<Sigma88> I would like to move some image files around using windows cmd prompt
<Sigma88> based on their width
<Sigma88> anyone here knows if thats possible?
<Sarbian> possible with powershell afaik
<Sigma88> could that be put in a batch file?
<Thomas> That could be put in a ps1 file
<Thomas> which is a batch file but better
<Sigma88> ok
<Sigma88> is there a good site I could go to learn the syntax?
<Sigma88> or just google powershell?
<Sarbian> Have a look at that https://stackoverflow.com/a/26315157
<Sarbian> and
<Thomas> ... there is a powershell for linux?
* Thomas downloads
<Sarbian> Yeah, too bad I can't push for that at work...
<VanDisaster> https://ss64.com/ is where I usually end up for windows shell stuff
<Sigma88> thanks Sarbian
<Sigma88> and VanDisaster
<Sarbian> It s a bit bare to learn the lang VanDisaster :)
<Sarbian> but nice reference
<VanDisaster> well, I guess :)
<Thomas> Also, if you got a command name, but you dont know how to use it: the powershell help is pretty good (Get-Help <programname>)
<Sigma88> do I need some kind of program to use those ps1 files?
<Sarbian> no; you should have powershell included in any recent windows
<Thomas> You can edit them with any editor, and execute them with right-click + "execute with powershell" or something like that
<Thomas> Sigma88: The versions might differ though, (for example win7 vs. win10), so you should probably download the latest version
<Sigma88> no that's true
<Sigma88> I can do right click execute
<Sigma88> but I want to put them in the startup folder so that it runs every time I star my pc
<Sarbian> you may have a "powershell ISE" in your start menu. That s a minimalist dev env for PS
<Sigma88> yes that opened when I clicked on "modify" to edit it
<Sigma88> hmm
<Sigma88> if I run it from ISE I get the error
<Sigma88> Impossible load the ps1 file because the execution of scripts is not allowed on this system
<Sigma88> disabled*
<Thomas> Open a powershell
<Thomas> and type in "Set-ExecutionPolicy Unrestricted"
<Thomas> powershell is paranoid
<Sigma88> wait
<Sigma88> if I want to copy all files do I need to setup a loop?
<Sigma88> it doesn't seem like it can accept wildcards
<VanDisaster> look at -path
<VanDisaster> it's the first option in the list
<Sigma88> >_>
<VanDisaster> and actually most of the options talk about wildcards
<Sigma88> it's not working
<Sarbian> Look at my first link, it has a loop
<Sigma88> ah ok
<VanDisaster> you'll have to wake up a powershell enthusiast, I'm the sort of person who uses cygwin bash :p
<Sigma88> it was a weird behaviour
<Sigma88> I have some extension-less files to copy
<Sigma88> cmd copy and robocopy both accept path\*.
<Sigma88> powershell for some reason needs \*
<Sigma88> go figure
<Thomas> Sigma88: Get-ChildItem "." -Filter *.txt | ForEach-Object { $_.FullName } - this would print all filenames in the current directory having a .txt extension
<Sigma88> ok
<Sigma88> so I managed to make a file that creates a folder and copies all files from another
Asymptote has quit [Read error: Connection reset by peer]
<Sigma88> hmmm
<Sigma88> I get memory issues
<Sigma88> + FullyQualifiedErrorId : ArgumentException
<Sigma88> thomas, thanks
<Sigma88> that snippet helped me fix my ps1 file
<Sigma88> :D
Ezriilc has quit [Ping timeout: 186 seconds]
Ezriilc has joined #kspmodding
Rokker has quit [Quit: Connection closed for inactivity]