Announcement

Collapse
No announcement yet.

Create a macro

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Create a macro

    Hello Guys,

    Could you assist me in getting the correct macro commands in place to replace a shortcut lnk file with an updated one that I created? The name of the lnk file is the same name as the shortcut lnk file it needs to replace on each users profile. This has not been applied to the All Users profile. Any assistance that you can provide would be great. Thanks for a great product! I use this everyday and makes life a lot easier.

  • #2
    Re: Create a macro

    I assume you mean that you are replacing this for users across multiple computers? The problem is there is no way to know what profiles are on each computer. Meaning, if you had a set path on each computer you can create a macro that puts in the computer name for the selected computers. The problem is the path on each computer will be different, and there's no way of knowing up front what that path would be.

    Comment


    • #3
      Re: Create a macro

      What do you think of this suggestion:
      create a macro command (you supply the commands) I apply this to the All Users profile changing the lnk file to "New the lnk name" and have the users delete the old one on there desktop?

      Comment


      • #4
        Re: Create a macro

        See if you can use something like:

        xcopy c:\newlink.lnk \\%E%\C$\Documents and Settings\All Users\Desktop\newlink.lnk

        You would select the computers you want to copy it to, then go to Tools->Create Macro. Enter the above, then give it an output file of something like c:\copylnk.bat and click OK. It should create the copylnk.bat file and have one line for each computer with the %E% replaced with the computer name.

        If the file looks good you can then go to the Command Prompt and type c:\copylnk.bat to run it.

        Comment


        • #5
          Re: Create a macro

          Sounds good, I will give it a test in a bit and let you know how it goes. Thanks again!

          Comment


          • #6
            Re: Create a macro

            Works! Thanks for your support

            Comment

            Working...
            X