Creating a .dat file to autorun for my program

Posted on 2013-05-15
Medium Priority
Last Modified: 2013-06-15
I have an proj.dat file I am working on and I need some code in order to make it autorun and bypass any security I may have on there. Or do I simply remove the security?
Question by:angelic_webmaster
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
LVL 82

Expert Comment

by:David Johnson, CD, MVP
ID: 39171039
Bypassing Security is against the Experts-Exchange TOS.

.dat files are not executable's in any case.. where you thinking a a autorun.inf?

Author Comment

ID: 39172945
Yea I was thinking autorun I believe. The dat file I found was inside of a CDD file - would the cdd file be an autorun file? Maybe not bypass the security, but add in info to make it run.
LVL 82

Expert Comment

by:David Johnson, CD, MVP
ID: 39177733
microsoft has pretty much disabled autorun.inf on removable media due to malware using it as a vector.
a basic autorun.inf

label=My install CD

Cyber Threats to Small Businesses (Part 1)

This past May, Webroot surveyed more than 600 IT decision-makers at medium-sized companies to see how these small businesses perceived new threats facing their organizations.  Read what Webroot CISO, Gary Hayslip, has to say about the survey in part 1 of this 2-part blog series.


Author Comment

ID: 39178005
Can I open the exe and edit it? Any ideas or thoughts?
LVL 82

Expert Comment

by:David Johnson, CD, MVP
ID: 39178070
WHY would you want to hex-edit an EXE?  Discussions about this are against the EE TOS
LVL 38

Accepted Solution

BillDL earned 2000 total points
ID: 39178499
Hi angelic_webmaster

As has been stated by others, you are probably wasting your time trying to get anything to autorun on a PC that is running a recent version of Windows.  For a number of years System Administrators have had the headache of trying to prevent users in workplaces from using their own USB Flash Drives, etc, on systems that automatically try to run content from them.  Just look up "autorun.inf virus" and you will see that loads of systems still get infected with malicious software that uses the autorun weakness of Windows to spread from one removable drive to another and then onto other computers.

In case you wondered, there is a difference between "autoplay" (where Windows tries to detect the file content of removable media and execute some action that can be modified by the user), and "autorun" (where Windows looks for an autorun.inf file in the root of the removable medium and executes the actions specified in it).

For quite a number of years there were lots of software titles (free and retail) that helped users easily create some pretty fancy autorunning CDs.  Many of the driver CDs that came with sound and graphics cards used one of the readily available titles that I used to use.  I am sure that sales of this software has almost completely died in the last two or three years because of the tighter security restrictions that would make the generated CDs useless as "autorun" ones on most modern PCs.  The same is true of CDs that come with PC magazines.  These commonly used a method that circumvented browser restrictions and used the default browser to display content in a way that would not now be allowed in an up to date browser and Windows PC.

Back in the Windows 9x days autorun was enabled by default for CDs but you could disable it directly through the registry or with tweaking utilities.  You could even enable autorun on floppy disk drives if you wanted to test things.  Those days are gone and autorun is disabled by default for security reasons.

You say that you have an *.exe file and you need some type of "autorun" data file.  You have not mentioned anywhere what this EXE file is, nor where you got it from, so we have no way of knowing what parameters might be required by the EXE file.

It is not clear whether the *.DAT file you refer to is needed to supply the settings for the EXE to display an interface, or whether you are muddling this up for a simple autorun.inf file.

If detected by Windows, an autorun.inf file simply tells Windows what icon to display for the CD drive, what file to execute, and some other options.  See ve3ofa's earlier post with Wikipedia link, and also this one:

An exe file sometimes needs a "data file" that tells it what to display and how to display it, for example a menu of options that are interactive and display different images or icons for each tab or section.  These data files are different for every exe file.  It all depends what the program was written with.  The old interactive Microsoft CDs used to use a fairly basic EXE that was re-usable for different CDs, and a different data file was all you needed to make it show and run different things.  The data file was a simple text-based one divided into headings that were known to the EXE.  Some EXE files will use binary data files that are not easily editable and can only be created by the same software that compiled the original EXE file.

There are a few programs that allow you to open, edit, and resave EXE (and a few other types of) files, but you would generally be in breach of copyright and licensing terms, and you need to know what to change anyway.

If you can explain what it is that you are trying to modify I am sure that we can evaluate whether or not we can answer your question legally and within the Experts-Exchange rules.

Author Closing Comment

ID: 39240297
This answered my question although my question was very vague, and I was still trying to understand what I wanted to do.
LVL 38

Expert Comment

ID: 39249823
Thank you angelic_webmaster.

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The following article is comprised of the pearls we have garnered deploying virtualization solutions since Virtual Server 2005 and subsequent 2008 RTM+ Hyper-V in standalone and clustered environments.
This post contains step-by-step instructions for setting up alerting in Percona Monitoring and Management (PMM) using Grafana.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question