Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

# Windows 7: Setting the window icon for a command prompt window

 30 Jan 2015 #11 swiftie Windows 7 Ultimate x64 147 posts Hampshire, England Quote: Originally Posted by Pyprohly Swiftie, you are a genius Thomas Edison said "Genius is one per cent inspiration, ninety-nine per cent perspiration." I just happen to be good at the "perspiration" aspect. I can't let go of a problem. It's why I'm sitting at my PC at 05:45 in the morning, having woken up at 04:50 wondering about backups... My System Specs
 .
 30 Jan 2015 #12 swiftie Windows 7 Ultimate x64 147 posts Hampshire, England Thank you for helping me with my VBS script! But, there's still work to be done. My test shortcut was "C:\Users\Steve\Desktop\Split Test.lnk" and the line "objShell.Run strCommand,1" gave me a popup "The system cannot find the file specified". Obviously, the classic "Filename containing a blank problem". Renaming the shortcut to C:\Users\Steve\Desktop\Split_Test.lnk and modifying my "split_run.vbs" is a bypass, but now I find myself looking for a way to modify: objShell.Run strCommand,1 ... for the case where strCommand contains blanks. This is just cosmetic nitpicking though, especially in the case where the underlying program ("split.rex" in my case) just needs to be run as a scheduled task. You can create the vbs "launcher" shortcut anywhere you like, so you won't have to look at an icon with a name of "Split_Test" (from the file "Split_Test.lnk"). If you really want to have an icon that you actually click, then you can create another shortcut, named whatever you like. My System Specs
 30 Jan 2015 #13 Pyprohly Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan 722 posts In a house Quote: Originally Posted by swiftie Obviously, the classic "Filename containing a blank problem". Yeah. I tend to forget that paths can have spaces. A small edit fixes the problem: Code: Dim strCommand, objShell strCommand = """C:\Location\to\some script.rex.lnk""" Set objShell = CreateObject("WScript.Shell") objShell.Run strCommand,1 PS: How's the thread at Rexx Forums doing? My System Specs
 .