The Mindjet Labs

Hands-on MindManager
Welcome to The Mindjet Labs Sign in | Join | Help
in Search

Starting a batch file using Macro

Last post 09-16-2008, 2:19 AM by koora. 2 replies.
Sort Posts: Previous Next
  •  08-25-2008, 9:51 AM 2003

    Starting a batch file using Macro

    Being new to this forum and to the software (MindManager Pro 7 on XP), i apologise if I addressed a wrong group and would be happy, if you can direct me to correct one.

     

    I'm looking for a way to start a batch file using a macro. The batch file creates a text file which I would like to add as a text note (string+T) to a new sub-topic of my map file. How can I do this?

     

    Thank you in advance,

    regards

     

  •  08-30-2008, 5:59 AM 2010 in reply to 2003

    Re: Starting a batch file using Macro

    Use the shell function.
  •  09-16-2008, 2:19 AM 2037 in reply to 2010

    Re: Starting a batch file using Macro

    after struggling for a while, I found the command ExecuteShellCommand.

    But If I start my batch file, I get an error message that I don't have permissions to use this file (though I'm having full rights).

    Here is a simple example:

    Sub Main
        Utilities.ExecuteShellCommand("d:\txt.bat")
    End Sub

     

    and in the txt.bat, I have echo "Hello World" > t.txt 

View as RSS news feed in XML