Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    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

    Scheduled Pinned Locked Moved Support
    buildmasterwindows
    4 Posts 1 Posters 2 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? This user is from outside of this forum
      Guest
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        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)
        
        1 Reply Last reply Reply Quote 0
        • ? This user is from outside of this forum
          Guest
          last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • ? This user is from outside of this forum
            Guest
            last edited by

            Thanks Alana, i'll check that out.

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • 1 / 1
            • First post
              Last post
            Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation