Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Invoke a command you type in the run box

Status
Not open for further replies.

Brycspain

IS-IT--Management
Mar 9, 2006
150
US
How do I invoke a command that you would type in the run box upon loggin into a workstation? Example: iexplore -k
I need this to run when any user logs onto a kiosk workstation I have locked down.

Thanks
 
Thanks for the help. What is the actual syntax and procedure for setting this up? This is what I'm trying and it doesnt work: I'm creating a batch file, typing in the batch file: iexplore -k and placing the batch file in the startup program group.

If I type this in the run box it works so I know you don't need a path or any environmental variables.
 
I created the shortcut however, when I click on ok to save the change I get an error:
The name 'c:\%programfiles%\Internet Explorer\iexplore.exe -k specified in the target box is not valid. Make sure the path and file name are correct.

What am I doing wrong?
 
Thank goodness for command line gurus =) I didn't learn about computers until Windows 95 came out =)
 
Remove "C:\" from your path. Unless you specify otherwise, the %programfiles% environment variable is usually equivalent to "C:\Program Files"

You wrote:
c:\%programfiles%\Internet Explorer\iexplore.exe -k
Unless I'm mistaken, Windows interprets this as:
c:\c:\Program Files\Internet Explorer\iexplore.exe -k
Removing the drive designation should fix it.
 
Thanks, PPettit, I took it out already and it works fine. Thanks to all the gurus that helped me (Rookie boy) out.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top