3

How do I start an application with a certain windows size an in a certain position? I would like to start it via command line, or by launching the app with a shortcut. In my case it's File Explorer. The solution has to work either for Windows 7 and Windows 10 but it does not have to be the same solution.

Unless absolutely necessary I want to do it without 3rd Party software. The question that is supposed to be a duplicate only received answers for 3rd Party software solutions; the other question specifically asks for a software solution as well, my question does not.

K7AAY
  • 9,512
  • 4
  • 33
  • 62
steven80
  • 47
  • 1
  • 10
  • Does it have to be without 3rd party software or additional tools? – Albin Sep 27 '18 at 14:37
  • Why was my question refered to a question that has been closed for reasons that don't apply to my question? I haven't aked for third party software and I would prefere a solution without it! – steven80 Sep 27 '18 at 16:17
  • @Albin if possible yes! – steven80 Sep 27 '18 at 16:46
  • I'm not adding this as an answer because I'm too lazy to research & give details but... Windows 10 (and I believe windows 7) comes with powershell, and using powershell you can do pretty much anything with .net. If you really want to avoid using 3rd party solutions then you could write your own powershell script that will do the dirty work for you. Unless you have programming experience already or have found someone else that's already done it, this might be the more difficult way to go. It's likely you'll expend much less effort using a 3rd party tool. – apocalysque Sep 28 '18 at 00:24
  • Here, this guy has already done some of what you want (manipulating windows). He's using win32 calls (there might not be .net calls, but that's ok, powershell can do win32 calls also). https://www.raydbg.com/2017/Call-Native-Win32-API-in-PowerShell/ – apocalysque Sep 28 '18 at 00:32

1 Answers1

2

Extensive search in Microsoft Forums and elsewhere reveal no solution within Windows itself. CmdNow is an open source solution freely available, and ShellFolderFix is available freeware also intended to solve this, until Microsoft provides a solution.

K7AAY
  • 9,512
  • 4
  • 33
  • 62
  • Thank you I did search for quite a while but I only found solutions that included additional tools/applications. Should I have explicitly written that I did search and didn't find any solution? I thought this is mandatory anyway before posting a question! – steven80 Sep 27 '18 at 22:15
  • Never hurts to tell folks what you did, and how you did it, in your quest for a solution before you Yelp for Help; in fact, I encourage it. Also wanted to explain why I was deviating from the (entirely legitimate and wholly understandable) no-external-app preference you stated. – K7AAY Sep 27 '18 at 22:18