|
Answer» Hello,
I have few questions as I am asking one by one. I want to use run command in command prompt, For example if we want to go to an another computer share, we type \\computername\sharename in run command but we cant do it in command promt, we have the commands XCOPY and net view, net share but I want to open the shares in explorer using command prompt. Is it possible ?
Secondly, I just read the cmd fun thread, so I want to display MESAGE after I logon to enter a password, if the password is right then an application will start + mesage should be displayed or if the password is wrong then an picture should be displayed.
Can I control the explorer WEBSITES using commands ? For example I should define ten websites (allowed), other than 10 websites if I visit any other website a mesage should be appeared that this is not trusted website.
Like there is a startup folder, can we run a batch file when the computer shut downs? or when we click on logoff? One more thing, if we are displaying a mesage using msg * command, so how we can use space in it ?
Thanks, Have a nice day.I can't test this very well but to open explorer at a certain place from command prompt you can type:
Code: [Select]explorer.exe \\computername\sharename what version of windows are you using? where you put the .bat file for it to run at startup depends on what version of windows your on, but the file would look something like: (where password.dat is an encrypted password file.)
Code: [Select]echo off set /p pass=<password.dat set /p password= please enter password if %pass%==%password% goto correct start "" picture.jpg exit
:correct echo well done correct password!! start "" application.exe exit
I'm running vista and to get something to run at startup you need to put it in the startup folder on the start menu, someone else will have to tell you for other OS'
I'm pretty sure you can't restrict access to the internet from command prompt but there is LOTS of software out there that will do it for you.
running a script at shutdown will depend on what version of windows your running... get back to us on that one.
I'm not sure about
Code: [Select] msg * but the usual way of displaying SPACES as they should be is by using quotation marks.
FBHello,
thanks very much for the matter you provided, as I cant understand the codings you wrote and what is encrypted password file ? Please can you tell me some easy steps so that it would guide me to a bat file which will display mesage after I logon to enter a password, if the password is right then an application will start + mesage should be displayed or if the password is wrong then an picture should be displayed. I shall be thankful to you. I am using Windows Xp Service Pack 2. Thanks again. Have a nice day. Bye.
turns out it's the same for XP as in vista... Place the file (or link) in: c:\programdata\microsoft\windows\start menu\programs\startup and it will run at startup.
copy the code below and put it into a .bat file at the above location.
Make a file called password.dat in the same place and edit it so that it contains your password.
FBHello,
Thanks dear, but can I open the password window in an another window like mesage window appears? and yes how we can define the path of the jpg file and application....? & I know about the startup folder but I want to run a batch file when we shut down or logoff the computer so what will be the procedure for it dear.... Take Care...Byemaybe this will help.
FB
|