Execute DOS commands in VBA code

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a simple VBA command similar to xp_cmdshell for T-SQL that will
allow me to execute a DOS command (e.g. MOVE, etc.) through VBA code - a
command that works for DOS like RunSQL works for SQL?

Thanks for your help ...

Bill Morgan
 
As Alex points out, the Shell command lets you run external commands.

However, if you're trying to move files from one location to another, the
VBA Name statement lets you move a file from one folder to another.
 
Back
Top