Unable to launch .bat [closed] - batch-file

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 9 years ago.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
I have a Minecraft server; When you run the server for the first time, it starts generating the world you are going to play on in the folder where you have the Minecraft_server.exe (This is normal behavior.)
I made a batch to open the Minecraft_server.exe. But when I place the .bat on my desktop and run it, it starts creating new server files instead of starting the program in the original folder where the existing world is.
How can I launch the bat anywhere on the PC, such that it wont generate new folders? I want it to always start in the Minecraft server folder.

You must first switch to proper drive and then using cd command switch to Minecraft server folder. Then you can run .exe with absolute path (if it is not in Minecraft server folder).

Related

How to download from a website that requires logging in username/password, using a batch file? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
I saw questions of this for other types of files but not batch. I don't know much about code, but I have an idea.
Open up the link in Microsoft Edge (because it's already logged into the website), and download it from there. I don't know how to make the batch file to OPEN and DOWNLOAD using Microsoft Edge though. Is this possible?
To open, I think it's this:
start microsoft-edge:http://www.cnn.com
How do I download it after opening Edge?
Not exactly batch file, but using tools that are already part of Windows, you can fetch web content with Powershell, which according to the article, can simulate the Unix curl command.
Another way, if you absolutely insist on using batch, is to install the curl command and then use the answers here to help you get further, using cookies to keep track of the login between multiple invocations of curl.
Basic usage is easy, but maybe you need a curl tutorial to help you do this.
There is another tool called wget that has similar functionality and may be a better or easier method for you. Mileage may vary.

How do I move folders in MS Teams [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
I am using MS Teams.
I am in a team, in the Files tab. I can insert edit delete files. I can move files using the "Move" command from the context menu.
I need to move a folder that I just created, under another folder.
How can I do that? There's no "Move" command in the context menu.
Thankx
It's not currently possible, by design.
When you move or rename a folder from outside Teams (e.g. using SharePoint) links to the files in that folder break (we link by path instead of by ID). This is something we will fix in the future, but for now we don't support moving folders for this reason.

How can I find out what language this file is? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I have this file, and I have absolutely no idea what kind of file it is.
When I open it in Notepad++ it reads as
ð X döS
or
(source: gyazo.com)
How can I figure out what language this is?
Looks like that http://patch.us.wizard101.com:12500/ returns some sort of patch file for a game client. Chances are there is some api calls you are missing that tell the server what file to generate and return. But since only game clients need to directly call that file I would delete it and chalk it up to a broken client.
Either that or the site's download handler is broken and is giving a garbage file.
There's no clear answer, because you can't really. You can do some research on the encoding, or see if you can piece it together depending on the file's origin.
This program will test against common file types to see if it can be opened with success: http://download.cnet.com/TrlD-File-Identifier-for-NET/3000-2248_4-10442461.html

Why execute permisiions along with write permissions needed for creating file in c(Linux)? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I am trying to create a file from my c source code on linux. I am using dd command for reading from a file and writing in to a file by creating there. If i don't have execute permissions(I have write permissions) for target directory(Where the file is going to be created), It is unable to create file. If I have both write and execute permissions, It is able to create file. What is the reason for this?
This question is probably off topic for this site, but in a directory "x" doesn't mean execute, but permission to access the files in the directory. This in contrast to "r", which just gives permission to see the names of the files.

Finding file structure in a drive? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I was wondering if there was anyway to effectively write out in a readable formate the file structure of a drive. So what I mean by this is if it can write out a result simmilar to...
C:/
File here
Another file here
Sub file here
Another file here
So sorta like that. I don't know what it is called but if there is something that does that then that would be great!! Even better if it was possable to do in batch (dosnt matter either way tho) Thanks :)
Open the command prompt in windows. Write:
tree
if you want options write tree /?

Resources