Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

Create a file in windows



  • hey,
    As a part of my deployment i want to create a 4 line bat file and type the lines that will enter there.
    then, i want to create a shortcut of the file to the desktop.

    in every deployment that file should be ran over off course.

    what is the best practice to do this?

    Product: BuildMaster
    Version: 4.9.4



  • so i can see that there is a create file job. great.

    but i get this error:
    what can it be?

    An unhandled exception occurred while executing this action: System.UnauthorizedAccessException: Access to the path 'C:\bla' is denied.
       at Inedo.BuildMaster.Extensibility.Agents.Tcp.TcpAgentClient.RunJob(ITcpAgentCommand command, Action`2 log)
       at Inedo.BuildMaster.Extensibility.Agents.Tcp.TcpAgent.Inedo.BuildMaster.Extensibility.Agents.IRemoteMethodExecuter.InvokeMethod(MethodBase method, Object instance, Object[] parameters)
       at Inedo.BuildMaster.Extensibility.Agents.AgentExtensions.InvokeFunc[T1,T2,T3,TResult](IRemoteMethodExecuter agent, Func`4 method, T1 arg1, T2 arg2, T3 arg3)
       at Inedo.BuildMaster.Extensibility.Agents.RemoteFileOperationsExecuter.Inedo.BuildMaster.Extensibility.Agents.IFileOperationsExecuter.OpenFile(String path, FileMode fileMode, FileAccess fileAccess)
       at Inedo.BuildMaster.Extensibility.Actions.Files.CreateFileAction.Execute()
       at Inedo.BuildMaster.Extensibility.Actions.ActionBase.ExecuteInternal(IActionExecutionContext context, ExtensionConfigurerBase extensionConfigurer, Boolean resumeNextOnError, Boolean logErrorsAsWarnings)


  • You're definitely on the right track... you want to use the Create File Action.

    That error means that either the agent doesn't have access to the folder, or that you're trying to create a file where a folder already exists.



  • Thanks Alana, i'll check that out.



Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation