Eng-Tips is the largest forum for Engineering Professionals on the Internet.

Members share and learn making Eng-Tips Forums the best source of engineering information on the Internet!

  • Congratulations dmapguru on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running Macro at Startup

Status
Not open for further replies.

Creigbm

Mechanical
Joined
Aug 1, 2003
Messages
161
Location
US
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?
 
[SolidWorks Installation]\SldWorks.exe /M c:\Macro.swp


Evan T. Basalik, MCSD
--------------------------------
It's all about prioritization...
 
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
 
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...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top