link470 Posted April 18, 2009 Author Posted April 18, 2009 Are you sure that the file is there and that the user has read access to it? Try it with notepad just to make sure: sCmd="notepad.EXE" Just tried that, and it worked perfectly, started notepad on login, and logged me out when I closed notepad. I tried the game path again, and it gave me the cannot find the file specified message again. So I copied the location directly from the code, between the " signs since it has spaces in it, and pasted it into start>run, and the game launched perfectly, so I know the file path is good. Could it be that it's not accepting spaces? I tried something else too. I added the C:\Program Files\Microsoft Games\Age Of Empires etc folder to the system path, and tried just adding EMPIRES2.exe in the code to see if that was the issue. Doesn't work then either, system cannot find the file specified. Thanks for your help!
link470 Posted April 21, 2009 Author Posted April 21, 2009 If you start the games through a batch file instead you could use the following: start /wait "C:\Games\Starcraft.exe" shutdown /l Just tried this solution out of desperation. Still doesn't work. I end up getting a command prompt window that comes up with the first line, start /wait "C:\Program Files\Microsoft Games\Age Of Empires II\EMPIRES2.EXE" and then just sits there and another command prompt window pops up and starts the command at a wierd place that has nothing to do with the script. I close that window, and the original command window asks me if I want to terminate the process. If I say no, it shows shutdown /1, disappears, and doesn't logout. If I choose yes, it closes, and doesn't log out as well. Thanks anyway!
DAckroyd Posted April 22, 2009 Posted April 22, 2009 it shows shutdown /1, QUOTE] Just to check is that 1 or L ?
User3204 Posted April 22, 2009 Posted April 22, 2009 Just tried this solution out of desperation. Still doesn't work. I end up getting a command prompt window that comes up with the first line, start /wait "C:\Program Files\Microsoft Games\Age Of Empires II\EMPIRES2.EXE" and then just sits there and another command prompt window pops up and starts the command at a wierd place that has nothing to do with the script. I close that window, and the original command window asks me if I want to terminate the process. If I say no, it shows shutdown /1, disappears, and doesn't logout. If I choose yes, it closes, and doesn't log out as well. Thanks anyway! You need to do: start /wait "Title" "C:\program folder\application.exe" so start /wait "StarCraft" "C:\Games\Starcraft.exe" Otherwise it interprets the stuff between the "" as a title\name.
link470 Posted April 30, 2009 Author Posted April 30, 2009 it shows shutdown /1, Just to check is that 1 or L ? It's a one [1]. You need to do: start /wait "Title" "C:\program folder\application.exe" so start /wait "StarCraft" "C:\Games\Starcraft.exe" Otherwise it interprets the stuff between the "" as a title\name. The event I was prepping these for is over so no pressure for time now [event went great! ended up just having the machines start Starcraft from the Startup folder, and luckily, they never wanted to quit Starcraft! They just played that all night then shut the machines down lol] but I'm keeping the machines and making modifications to them so I can use them again I'll give that a shot, thanks!
DAckroyd Posted April 30, 2009 Posted April 30, 2009 It's a one [1] try changing that to an L and then as I'm assuming it si trying to do a shutdown with log off? this will be a very useful thing when it works as you can have program spesific users on the domain (ie for exam software and programs like sucess maker). Is it possible to put up the full code of it working if/when it is please?
SYNACK Posted May 22, 2009 Posted May 22, 2009 Hey guys! I haven't found anything else yet that would do a better job than what you all have suggested. Anything ideas on fixing the user shell error or the VB script, or any other ideas? I've still got 2 weeks. Thanks! Although this thread is long since dead I may have come up with a way to make the shell mode work properly and so thought I would add it for refference. It turns out that as part of XP SP2 they added something called shell protection mode to increase security. This restricts the shell applications access to a certain small subset of folders and files. This can be disabled in the local group policy on the computer by going to: Computer Configuration > Administrative Templates > Windows Components > Windows Explorer : Turn off shell protocol protected mode Hopefully this will work and act as a refference for anyone who might be trying this kind of thing in future.
antonseidler Posted July 2, 2009 Posted July 2, 2009 You can try using ScreenPass ScreenPass automatically Logout idle workstations after administrator defined idle period has exceeded. Works under XP and Vista.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now