73
submitted 1 month ago by partybot@lemmy.ca to c/nostalgia@lemmy.ca
all 4 comments
sorted by: hot top controversial new old
[-] psmgx@lemmy.world 24 points 1 month ago

Find some random batch file on the early internet.

Cup holder script... Say fuck it, download and run.

CD ROM opens. No other functions, miners, or Trojans. Peak Geocities.

[-] SzethFriendOfNimi@lemmy.world 8 points 1 month ago* (last edited 1 month ago)

https://stackoverflow.com/questions/58670/windows-cdrom-eject

C function

bool ejectDisk(TCHAR driveLetter)
{
  TCHAR tmp[10];
  _stprintf(tmp, _T("\\\\.\\%c:"), driveLetter);
  HANDLE handle = CreateFile(tmp, GENERIC_READ, FILE_SHARE_WRITE, 0, OPEN_EXISTING, 0, 0);
  DWORD bytes = 0;
  DeviceIoControl(handle, FSCTL_LOCK_VOLUME, 0, 0, 0, 0, &bytes, 0);
  DeviceIoControl(handle, FSCTL_DISMOUNT_VOLUME, 0, 0, 0, 0, &bytes, 0);
  DeviceIoControl(handle, IOCTL_STORAGE_EJECT_MEDIA, 0, 0, 0, 0, &bytes, 0);
  CloseHandle(handle);
  return true;
}
[-] shalafi@lemmy.world 2 points 1 month ago

Had one called Coke.exe with a Coke bottle icon. Set it to pop the accountants CD on a random timer. She thought she was going nuts.

this post was submitted on 09 Jul 2024
73 points (100.0% liked)

Nostalgia

1349 readers
207 users here now

nostalgia noun nos·tal·gia nä-ˈstal-jə nə-, also nȯ-, nō-; nə-ˈstäl- 1: a wistful or excessively sentimental yearning for return to or of some past period or irrecoverable condition also : something that evokes nostalgia

Rules for Nostalgia Lemmy Community

1. Respectful Nostalgia Share nostalgic content and memories respectfully. Avoid offensive or insensitive references that may be hurtful to others.

2. Relevant Nostalgia Posts should focus on nostalgic content, including memories, media, and cultural references from the past. Stay on topic to preserve the nostalgic theme of the community.

3. Source Verification If you share nostalgic media or content, provide accurate sources or background information when possible.

4. No Spamming Avoid excessive posting of similar nostalgic topics to keep content diverse and engaging for all members.

5. Positive Discussions Encourage positive discussions and interactions related to nostalgic topics. Respect different viewpoints and memories shared by community members.

6. Quality Content Strive to post high-quality content that sparks nostalgia and meaningful conversations among members.

7. Moderation Guidelines

By adhering to these rules and guidelines, we can create a welcoming and enjoyable space to relive nostalgic moments together. If you have any questions or suggestions, feel free to reach out to the moderators. Thank you for sharing your nostalgia responsibly!

founded 1 year ago
MODERATORS