didadocom Posted July 21, 2010 Author Share Posted July 21, 2010 Ok. It is working!I am creating a batch file with all the hidden application that are not installed by default in Windows XP. I am using OptimumX's shortcut.exe When I finish I will add it here.Now I want to do the same thing with all Command Lines, but it doesn't work.It gives me two types of errors:With this line:shortcut /f:"%HOMEDRIVE%%HOMEPATH%\Start\Programs\Command Lines\Append.lnk" /a:c System error 3 has ocurred.With this:shortcut /f:"%HOMEDRIVE%%HOMEPATH%\Start\Programs\Command Lines\Append.lnk" /a:c /t:"C:\WINDOWS\system32\append.exe"System error -2147467259 has ocurred.What is happening? Or I must use another system? Link to comment Share on other sites More sharing options...
Yzöwl Posted July 21, 2010 Share Posted July 21, 2010 Ok. It is working!I am creating a batch file with all the hidden application that are not installed by default in Windows XP. I am using OptimumX's shortcut.exe When I finish I will add it here.Now I want to do the same thing with all Command Lines, but it doesn't work.It gives me two types of errors:With this line:shortcut /f:"%HOMEDRIVE%%HOMEPATH%\Start\Programs\Command Lines\Append.lnk" /a:c System error 3 has ocurred.With this:shortcut /f:"%HOMEDRIVE%%HOMEPATH%\Start\Programs\Command Lines\Append.lnk" /a:c /t:"C:\WINDOWS\system32\append.exe"System error -2147467259 has ocurred.What is happening? Or I must use another system?The first error example is because you are using the wrong parameters.You are asking the application to create, (/a:c), a shortcut but have not provided it with a target for that shortcut, (/t:).The second example returns to one of your previous posts.You are asking for a shortcut to be created inside a location which does not exist, (\Command Lines).You need to firstly 'make the directory' for the location of that shortcut. Link to comment Share on other sites More sharing options...
didadocom Posted July 22, 2010 Author Share Posted July 22, 2010 The first error example is because you are using the wrong parameters.You are asking the application to create, (/a:c), a shortcut but have not provided it with a target for that shortcut, (/t:).The second example returns to one of your previous posts.You are asking for a shortcut to be created inside a location which does not exist, (\Command Lines).You need to firstly 'make the directory' for the location of that shortcut.I know. The directory was created and it appears in the location where I want to add the shortcuts, but when I want to add the target and link (THE ABOVE TWO EXAMPLES) it gives this errors.I used the same indications that worked perfect in the first batch.Here is the code:If Not Exist "%HOMEDRIVE%%HOMEPATH%\Start\Programs\Accesories\Command Line" ( Md "%HOMEDRIVE%%HOMEPATH%\Start\Programs\Accesories\Command Line")::PINGshortcut /f:"%HOMEDRIVE%%HOMEPATH%\Start\Programs\Accesories\Command Line\Ping.lnk" /a:c /t:"C:\WINDOWS\system32\cmd.exe /k ping" Link to comment Share on other sites More sharing options...
Yzöwl Posted July 22, 2010 Share Posted July 22, 2010 shortcut /f:"%HOMEDRIVE%%HOMEPATH%\Start\Programs\Command Lines\Append.lnk" /a:c /t:"C:\WINDOWS\system32\append.exe"System error -2147467259 has ocurred.If Not Exist "%HOMEDRIVE%%HOMEPATH%\Start\Programs\Accesories\Command Line" ( Md "%HOMEDRIVE%%HOMEPATH%\Start\Programs\Accesories\Command Line")::PINGshortcut /f:"%HOMEDRIVE%%HOMEPATH%\Start\Programs\Accesories\Command Line\Ping.lnk" /a:c /t:"C:\WINDOWS\system32\cmd.exe /k ping"The error message you were receiving was because the intended shortcut location does not exist!\Command Lines vs \Command LineThe example you've given is also wrong!On my current Vista PC, the following would do as you requireshortcut /f:"%userprofile%\Start\Programs\Command Lines\Ping.lnk" /a:c /t:"%systemroot%\system32\cmd.exe" /p:"/k ping"However using the Syntax suggested in the ReadMe.txt file you'd need this:shortcut /f:"%userprofile%\Start\Programs\Command Lines\Ping.lnk" /a:c /t:"^%systemroot^%\system32\cmd.exe" /p:"/k ping"Depending upon how you invoke the command and you particular system you may need to choose either one of the two! Link to comment Share on other sites More sharing options...
didadocom Posted July 22, 2010 Author Share Posted July 22, 2010 (edited) OK, it works with PING.But not with APPEND or ATTRIB (I have tried only this two): /t:"%SYSTEMROOT%\system32\cmd.exe" /p:"/k append"In this example I want that the Command Line open a DOS windows with the Command Prompt APPEND with the explanation of what it is and help lines (/?) to this command.Attached is the example. Edited July 22, 2010 by didadocom Link to comment Share on other sites More sharing options...
Yzöwl Posted July 22, 2010 Share Posted July 22, 2010 In this example I want that the Command Line open a DOS windows with the Command Prompt APPEND with the explanation of what it is and help lines (/?) to this command.This works perfectly for me!shortcut /f:"%userprofile%\Start\Programs\Command Lines\Append.lnk" /a:c /t:"%systemroot%\system32\cmd.exe" /p:"/k append /?" Link to comment Share on other sites More sharing options...
didadocom Posted July 30, 2010 Author Share Posted July 30, 2010 I finished making the batch files for adding shortcuts to the programs that Windows XP (Home or Professional) doesn’t install by default. All programs listed in my first comment only shortcut some applications, no one of them is complete, or simply call the application from their own program. In different ways, generally very mixed, and many repeat some applications that are already installed by default, for example: Notepad or Character Map.The batch file that I made “Windows XP Hidden Applications“ install all the shortcuts to the applications that Windows XP doesn’t call and that are "hidden" inside directories and folders. There are 62 applications that doesn’t appear in any way unless one knows the name and extension or the keyboard shortcut to call it.Excluded are those that are installed but not seen as System Administrative Tools that resides in Control Panel, and if you want to see it in Accessories, you must go to Control Panel > Taskbar and Start Menu > Start Menu > Customize > Advanced > System Administrative Tools and tick Display on the All Programs menu.In order that all applications are seen one must install Windows XP with Service Pack 3 complete. After completing the standard installation go to Control Panel > Add or Remove Programs > Add/Remove Windows Components and tick all the options. If you do not label some of them, the associated shortcuts will not work. But this is a option that you decide and depends of your actual requirements.I also made another batch installer “Windows XP Command Line”, with 210 command lines. I included only those that respond to the command line. There are others, but the command line must be applied directly in order to function.This is a job that can be improved and if anything is missing or there are errors I will appreciate your suggestion and will correct it. There is a ReadMe.txt file with the instructions.In English:Windows XP Hidden ApplicationsWindows XP Hidden Applications.zipWindows XP Command LineWindows XP Command Line.zipIn Spanish: Aplicaciones Ocultas de Windows XPAplicaciones Ocultas de Windows XP.zipLínea de Comandos de Windows XPLinea de Comandos de Windows XP.zip Link to comment Share on other sites More sharing options...
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