×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Running Macro at Startup

Running Macro at Startup

Running Macro at Startup

(OP)
I know there is a way to do this, and at one point I think I knew how.  In any case, how do you make a macro run everytime you start SW?

RE: Running Macro at Startup

[SolidWorks Installation]\SldWorks.exe /M c:\Macro.swp

Evan T. Basalik, MCSD
--------------------------------
It's all about prioritization...

RE: Running Macro at Startup

Will this technique work with a batch file that I would like to run everytime SolidWorks gets launched? Example

[SW Install]\SldWorks.exe \\network_server\custom.bat

RE: Running Macro at Startup

Sorta - if I understand what you are trying to do, I think this approach would work...

Create a batch file called SolidWorks.bat with the following lines:

\\network_server\custom.bat
[SW Install]\SldWorks.exe

Then, when you run the SolidWorks.bat file, it will run your batch file, then launch SW.

The other approach would be to use a startup macro and the shell command.  The only problem with that is that the command inside the shell statement won't get run until after SW is running.  Depending on what you are trying to do, that may be either good or bad.

Evan T. Basalik, MCSD
--------------------------------
It's all about prioritization...

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources