Jump to content

Yzöwl

Patron
  • Posts

    4,113
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United Kingdom

Everything posted by Yzöwl

  1. Yes, the following: will suppress the echoing of 'copied n file(s) successfully'
  2. When 'looking for' did you think to try:either shortcut vbs or shortcut inf in the 'basic' Google site search at the top of each page of the forum?
  3. I have already told you that it is possible using an inf file and you can also use vbscript. In order to satisfy the original posters requirements both of these methods can be implemented, (written and run), from a batch file.There are very many, (several from myself), posts throughout this forum showing the syntax for this method of shortcut creation. As a proof of concept, I have written a batch file which creates and runs the appropriate file for you. The file I have written is far too complex for the majority of users and for that reason it's coding has been protected from view by compiling it to an exe. The complexity is due to the way it has to be able to work with a simple input parameter. Unfortunately showing the coding of it will most certainly confuse more people than it will help. Your file will not need to be complex like mine, if you do not wish to use my file then all you need to do is search the forums for the examples already given, digest the information and implement it yourself.
  4. You can use an inf file to generate shortcuts.Attached is a batch file I have compiled and zipped, which will create desktop shortcuts to programs. The file is simply called using the name of the app as a parameter. In order to achieve the required result, there are some rules: The parameter must be an 'exe' file. e.g. msnmsgr.exe (is allowed); WinRAR.hlp (is not allowed). The file extension, however, must not be input. e.g. msnmsgr (works); msnmsgr.exe (does not work) The exe filename must not contain any spaces. e.g. msnmsgr (works); NFO Viewer (does not work). The file must reside somewhere within %ProgramFiles%. Example for the original questioner: MDTLink msnmsgr This file has not been extensively tested, especially on non-English systems. MDTLink.zip
  5. They are all adding information to the registry via the REG ADD command aren't they? If you were to use the syntax I again gave you here then you wouldn't need to ask this question! Clue: last four characters
  6. Well I'm glad you spotted it, you'd have noticed it if you'd used the examples you'd already been given yesterday! @Echo Off Setlocal (Set COMPNUM=001) (Set COMPNAME=TestClient%COMPNUM%) Reg Add HKLM\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName /v ComputerName /d "%COMPNAME%" /f>Nul
  7. Good practice notes: Set your variables local to the running batch session To prevent the inclusion of unwanted whitespace in your variables, enclose them in parentheses (lines 3, 4, 5) @Echo Off Setlocal (Set one=test) (Set two=program) (Set three=SomeWords%one%%two%) Echo/%%three%%=%three%
  8. With regard showing network icons in the system tray, I answered a question recently, using batch code, which does exactly that.
  9. Hello and welcome to the MSFN Forums.
  10. Well that's me covered....oh and welcome to the MSFN Forums
  11. Depending upon a few things, you may be better off just starting each of the applications from a batch file: @echo off start "" c:\myprogs\prog1.exe start "" c:\myprogs\prog2.exe start "" c:\myprogs\prog3.exe start "" c:\myprogs\prog4.exe exitsub-note Using the above syntax, you shouldn't have several cmd windows open!
  12. ...and thank you for joining MSFN's forums. On behalf of the community I would like to welcome to you and hope you succeed in your endeavours.
  13. Welcome to the MSFN Forums. ...where we have more answers than most!
  14. The only way I know of to remove search but still keep the F3 and winkey+f and other search functionality is this: Open %systemroot%\explorer.exe in Reshacker. Go to: menu » 204 » 1033 and remove the text: POPUP "&Settings", 508, MFT_STRING, MFS_ENABLED, 0 { MENUITEM "&Control Panel", 505, MFT_STRING, MFS_ENABLED MENUITEM "", 65535, MFT_SEPARATOR, MFS_ENABLED MENUITEM "&Windows Security...", 5001, MFT_STRING, MFS_ENABLED MENUITEM "&Network Connections", 557, MFT_STRING, MFS_ENABLED MENUITEM "&Printers and Faxes", 510, MFT_STRING, MFS_ENABLED MENUITEM "&Taskbar and Start Menu", 413, MFT_STRING, MFS_ENABLED } POPUP "Sear&ch", 520, MFT_STRING, MFS_ENABLED, 0 { MENUITEM "", 65535, MFT_SEPARATOR, MFS_ENABLED }Click on compile script and save as explorer.exe to e.g. desktop. Now use a batch file something like this: @ECHO OFF TSKILL EXPLORER>NUL COPY/Y %USERPROFILE%\DESKTOP\explorer.exe %SYSTEMROOT%>NUL EXPLORERAlternatively use replacer to replace your explorer.exe with this new one.
  15. It can be done very easily using the registry. Provide us with the full application name and location and you should receive a suitable solution.
  16. Hi Rob, welcome to MSFN!
  17. Welcome to the MSFN Forums. It's good to see that the authors work is rubbing off on you!
  18. Yzöwl

    Hi

    Hi, mine isn't! Welcome nonetheless.
  19. Welcome to the MSFN Forums. No need to apologize, It's nowhere as near as bad as my French!
  20. Yes! NET USER ASPNET /active:no
  21. It looks a little over-complicated to me! Here's a single line batch file solution @FOR /F "DELIMS=" %%? IN ('REG QUERY HKLM\SYSTEM\CurrentControlSet\Control\Network\{4D36E972-E325-11CE-BFC1-08002BE10318} /S^|FINDSTR \\Connection$') DO @REG ADD "%%?" /V ShowIcon /T REG_DWORD /D 1 /F>NUL
  22. Welcome to the MSFN Forums. It's good to have you 'on board'
  23. Welcome, learning takes time, but you've come to the right place, the MSFN Forums. Just a small tip for you with regards spyware etc. Don't fall into the common trap of relying solely on a handful of third party software solutions. Learn how to use the Operating System to best advantage first, then utilize appropriate software.
  24. Welcome to the MSFN Forums.
  25. From the information we were supplied, I can see no reason why the task would be performed by anyone other than an administrator and there shouldn't even be a need to use a script to deploy the command.However I'm sure your addition may be useful to those capable of breaking down your code for other tasks. <Edit> BTW, the 'wildcard' asterisk at the end of my line of code was a requirement! </Edit>
×
×
  • Create New...