Windows 10: Can Someone Help me Write a Script

Discus and support Can Someone Help me Write a Script in Windows 10 Support to solve the problem; I use an old kvm switch without active ddc so I am always having to open screen resolution settings and click detect. I would like to make a script... Discussion in 'Windows 10 Support' started by lgentry, Jul 13, 2015.

  1. lgentry Win User

    Can Someone Help me Write a Script


    I use an old kvm switch without active ddc so I am always having to open screen resolution settings and click detect.
    I would like to make a script file and then a shortcut to the file to do this for me but I have never written a script and can't figure out how to do it. Also, do I need to have a program in order for the script file to work. Can one of you tell me how I might accomplish this. Thanks

    :)
     
    lgentry, Jul 13, 2015
    #1
  2. ogun228 Win User

    Can someone help me write a small batch file?

    YESSS! It worked once I corrected syntactical errors. You are THE MAN. Thank yo very much.

    I also had a chance to revisit my old DOS skills, killed by GUI.

    J-D
     
    ogun228, Jul 13, 2015
    #2
  3. Can someone help me write a small batch file?

    Did the command icacls give you errors that say you don't have permissions?

    If that is the case you can try it in an Administrator command window.

    Select: Win Key + X -> Command Prompt (admin)

    To get to the right folder use the cd command

    For instance: cd C:\

    That takes you to the top folder/directory.

    From there you can cd (change directory) down one directory at a time. If you type: cd (and the a few characters of the right directory name and then <Tab Key> it will fill in the name).

    You can also use the dir command to get a listing of the current directory type: dir<Enter Key>
     
    A_User_Here, Jul 13, 2015
    #3
  4. Can Someone Help me Write a Script

    DonationCoder.com has a sub-forum dedicated to just these small requests called Coding Snacks. You may submit your request here:
    Post New Requests Here - DonationCoder.com

    Please read the rules before posting. But the type of thing you are talking about should be quite easy. Also you may wish to read about DonationCoder here:
    DonationCoder.com

    Donations are encouraged but voluntary. If you have any questions about signing up or using the site contact Mouser.
     
    MilesAhead, Jul 13, 2015
    #4
  5. NUS
    Nus Win User
    If you don't know how to program then it would probably be to complicated to do that for your first script.

    Check you have Windows Powershell installed, it should be listed on the Start menu, and I'll see if I can knock something up for you.
     
  6. lgentry Win User
    Yes, I have powershell. I REALLY appreciate your time and effort.
     
    lgentry, Jul 14, 2015
    #6
  7. NUS
    Nus Win User
    As I can't replicate the same issue you've got this may need tweaking for your system, so report back.

    Rather than open the Control Panel Display properties and clicking detect, this uses the Windows API to detect display devices.

    There's a powershell script with the code and a batch file to run the script without having to change your system execution policies. You can place these files wherever you want but you will have to edit the .bat file and put in a new location. As it is, I've set it to run from C:\Program Files\Detect. So create this folder and put the two files in it. You can then create a shortcut to the .bat file on your Desktop.

    Detect.zip
     
  8. lgentry Win User

    Can Someone Help me Write a Script

    Nus, this did not work for me but DonationCoder told me that a simple shortcut with the following as target
    will "detect display" Hope someone else finds this and it is beneficial. Thank you so much for your time and effort., I don't know what I would do without all the help I receive from gurus such as yourself. I am really amazing how many people across the web give of themselves to assist strangers. Good will is alive and well in the computing world.

    %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe -noprofile -executionpolicy bypass -Command "Get-CimInstance -Namespace root\wmi -ClassName WmiMonitorBasicDisplayParams | Out-Null"

    edit 7/23/15 I forgot to add that this shortcut must be "run as administrator"
     
    lgentry, Jul 18, 2015
    #8
  9. Ztruker Win User
    What does it do for you? I ran it just for kicks and it took 5 seconds or so then exited but I could not detect anything happening, probably because my resolution was already correct.
     
    Ztruker, Jul 19, 2015
    #9
  10. NUS
    Nus Win User
    No, worries, that looks like a simpler method, heh.

    I've got a script to set resolution, colour depth and refresh rate, so say if you need that.
     
Thema:

Can Someone Help me Write a Script

Loading...
  1. Can Someone Help me Write a Script - Similar Threads - Someone Help Write

  2. Can someone help me?

    in Windows 10 Network and Sharing
    Can someone help me?: I don't know if anyone can help me with this but I wanna get my old files before I reset my laptop if anyone can tell me how to get my files that I had before I reset my laptop that would help me a lot Thank you!...
  3. OpenSSL - Can Someone Help me Create One?

    in Windows 10 Network and Sharing
    OpenSSL - Can Someone Help me Create One?: Hello, Experts, I need someone's help creating an OpenSSL certificate on Windows 10 for my NAS and router. I've literally spent hours (actually probably more) trying to go through the directions that are littered on the net but I can't still seem to understand how to do it....
  4. Can someone help me with the analysis of my crash dump?

    in Windows 10 BSOD Crashes and Debugging
    Can someone help me with the analysis of my crash dump?: Hello, I've been getting system crashes once in a while ("blue screen"), and I'm trying to figure out why? I have windows 10. Can someone help me discover the reason? Any help appreciated. Link to my minidump file:...
  5. Can someone help me?? PLEASE

    in Windows 10 Customization
    Can someone help me?? PLEASE: Hi!! can someone help me fix my taskbar. So i was casually browsing then it suddenly goes to a Blue Screen! after the collecting of some error info and restarted my laptop .After that i tried opening it and then this messaged pop out "the selected boot device failed " after...
  6. Help needed writing batch script!

    in Windows 10 Support
    Help needed writing batch script!: Firstly thank you for even clicking on this thread as I understand that this probably isn't meant to be here. The scenario is that I'm trying to write a script that incorporates the result of a ping to an IP and then based on the result do different things. Here is an...
  7. I hope someone can help me get to the Windows Ten Forum

    in Browsers and Email
    I hope someone can help me get to the Windows Ten Forum: Seems strange huh? Well, here's the story. I am now using Firefox- the latest version, to get to the Windows Ten Forum but when I get there, all I get is what's on the attached graphic. I can use the links there but cannot not see everything else that is on the forum. Can't...
  8. Can someone help with Install_wim_tweak?

    in Windows 10 Software and Apps
    Can someone help with Install_wim_tweak?: Install_wim_tweak I found some info on the net, commands how to remove windows apps etc. But I do not know how to start using that app as there's not much on the net. I got Install_wim_tweak for framework 4.6 and planning to use it to remove some packages from current os...
  9. Can someone help me?!? apps not working!

    in Windows 10 Software and Apps
    Can someone help me?!? apps not working!: Hi guys. this morning i woke up. and all my minecraft doesent want to start up! skype says not responding! help!!! this is really frustrating. 35706
  10. Can someone tell me about ASUS?

    in Windows 10 Support
    Can someone tell me about ASUS?: I am looking at Laptops and so far the ASUS is the lowest priced I can find. Can someone tell me about ASUS and if they are any good? 76713