Making Dev-C++ Portable

Dev-C++ is a really great development environment that can be configured to be completely portable (i.e. it saves its configuration files to the same location that it runs from).

Warning: What you can't seem to do is run it as a portable application on a network drive.

To enable this feature you must run the IDE using -c switch.

The easiest way to achieve this is by creating a batch file to run it.

1 : Go to your Dev-C++ folder

Open File Explorer and go to the folder where you installed Dev-C++.

The default location is C:\Dev-cpp but you may have changed it during installation.

2 : Create a text file and call it start.bat.

It's important that your computer is not hiding file extensions otherwise, when you create the text file and try to save it as start.bat it may try to save it as start.bat.txt.

3 : Create a folder to store the profile

Create a new folder in the Dev-C++ folder and call it Profile.

2 : Edit the text file (start.bat)

A screenshot of what the batch file should containOpen the new text file that should be now called start.bat and make sure that the only line in it is:

Incidentally - you can make Dev-C++ portable by creating a text file in the Dev-C++ folder and put this single line in it:

devcpp.exe -c Profile

3 : Save the text file

Save the text file and close the text editor.

4 : Use the batch file to run Dev-C++

Instead of double-clicking on Devcpp.exe, double click on start.bat instead. That will run Devcpp.exe with the -c switch that specifies where the configuration files are stored.

5 : Copy the Dev-C++ folder to your portable media

You can now copy the Dev-C++ folder to whatever media you like - a USB drive for example. As long as you start the IDE using the batch file (start.bat) then it will behave as a portable application.