Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

Recognition

  • Give kudos
  • My kudos

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Serving static files on a a relative path Edited

Im looking for a way for agent's to start a Remote Control on Windows machines.

 

It can be started, for instance, with this run command

C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\bin\i386\CmRcViewer.exe HOSTNAME1337

 

I figured it would be wise to create batch file for each machine, that would be downloaded as an attachment and the file would start this program with the computer hostname.

 

The contents of the batch file is very simple:

c: & cd "C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\bin\i386\" & CmRcViewer.exe HOSTNAME1337

 

However, this has to be running on the Jira server, since attachments need to have a relative patch so they will be downloaded, else Chrome will simply display the contents of the batch file as text.

 

So, if I were able to serve static files, I could create a URL with the download attribute, so the batch file would be downloaded, and not displayed as text in the browser.

<a href="/relative_path/HOSTNAME1337.bat" download="" target="_blank">Download batch</a>

 

Does anybody have a suggestion on how this can be achieved? I saw one post on the forum regarding this, suggesting using an open project and simply uploading through the UI, but I'm talking about being able to serve maybe thousands of different batch files.

I created a python script to generate the batch files, but I need a way to serve them using a relative path on the same machine.

 

Thanks!

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Asked in Jira Service Desk

Calling all Insight users, we need your help!

Hello Insight users,  As part of our (Mindville's) acquisition by Atlassian, our training team is looking to build some new Insight training materials. It would really helpful if you can ...

266 views 4 6
View question

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you