MARS Mips open file default folder - mars-simulator

Is there a way to set the default folder when clicking File>Open?
MARS always shows the user folder for me (home/diogo/).
It only shows another folder when I have already a file opened (shows that file directory).

If you are on linux open the terminal, navigate to the desired folder and launch mars with java -jar PathToMarsJar

Related

Bat file is missing in jmeter bin folder

I just tried to install jmeter - (Apache-j meter-5.1.1) but when I view the bin folder bat file is missing. My configuration details: version of jdk is 12.0.2, my operation system is 64 bit. View the screenshot of bin folder -
https://www.screencast.com/t/apWQkxP3dD4h
Type Windows Batch File is a file type with extension .bat
You have such jmeter file in your screenshot
A batch file is a script file in DOS, OS/2 and Microsoft Windows.
The filename extension .bat is used in DOS and Window
The jmeter.bat file can be obtained from JMeter sources at any time if you removed it by accident.
However in fact you do have the file:
You might want to configure Windows Explorer to show file extensions
In general I would recommend launching JMeter from Windows Command Prompt as in case of i.e. Java misconfiguration you will not be able to see the output given you launch JMeter by double-clicking the shortcut because it will blink and close immediately.
More information: How to Get Started With JMeter: Part 1 - Installation & Test Plans
Just double click on file type named as Jmeter with type as "Windows Batch File" or else open it from command prompt/terminal.
refer to the attached screenshot.
Cliek here to open a screenshot

run a .bat file from folder background context menu

I'm trying to run a bat file located at c:\sort2folder.bat from the context menu of the folder background that I am currently in ,IE H:\videos, using the code below.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\Sort 2 Folder]
#="&Sort 2 Folder"
[HKEY_CLASSES_ROOT\Directory\Background\shell\Sort 2 Folder\command]
#="C:\\sort2folder.bat \"%V\""
The problem is that it seems to be running the sort2folder.bat file in the c: directory instead of changing to the current directory that I'm in.

How to make a .bat file autorun on pc startup

So I created this program to launch overwatch and chrome when i open it.
#echo off
start Overwatch.exe
start Chrome.exe www.youtube.com
timeout 2 > exit
Can I somehow make it run automatically after turning on my pc?
Here's the site you might want to look at:
https://www.computerhope.com/issues/ch000322.htm
Basically you want
Run a batch file at boot in Windows 8 and 10 users
Create a shortcut to the batch file.
Once the shortcut has been created, right-click the file and select Cut.
Press the Start button and type Run and press enter.
In the Run window, type shell:startup to open the Startup folder.
Once the Startup folder has been opened, click the Home tab at the top of the folder and select Paste to paste the shortcut into the folder.

How to use the dot command (.) in my custom command?

I have written a simple batch file mycmd.bat, to open up explorer. I've added the file in the appropriate path. The content of the file is:
explorer
Now I want to use this bat file to open up any directory. So I navigate to the required directory and run my command:
D:\MyFolder>mycmd .
If I have Visual Studio Code installed then if I wanted to open the directory with VS Code then I'd do:
D:\MyFolder>code .
I want similar approach for my custom command.
Now if I run D:\MyFolder>mycmd . it opens up my Libraries folder. Not the folder I am at right now which is D:\MyFolder.
(For me Libraries is the default folder that opens up when I open explorer by clicking the yellow explorer icon at my taskbar.)
You do not need a batch-file for that. Navigating to the directory and typing (into the commandline I assume you to take to navigate) explorer . opens the explorer view of that folder.
An alternative if you are running this in a batch-file you could also use explorer %cd%. The environmental variable cd stores the path of the current callers (Thanks for the correction by WasteD!) directory.
So it uses the value from where you called the file i.e. the directory you are currently in or after you used cd anotherFolder it will use this new path.
To change your "custom command" you could also add "%~1" to the same line explorer currently stands in:
explorer "%~1"
This will take the first argument of your batch-file -> in this case . without potential surreounding quotes and add it after the explorer command as first argument.

how to make a bat file autostart in win system

I have a bat file (in fact it is a tomcat startup bat), this is the very simple content:
c:/tomcat/catalina.bat run
Now I want it to autostart at system startup, any ideas?
To clarify more what #Oskar said. The autostart is the startup folder in your Program Files folder.
Any executable files placed in that folder are launched on windows startup.
if you want to start it when you are logged in then put it in start list, just create shortcut to bat file in startup folder start->programs->startup

Resources