Menu

When setting up a RAM Disk, I realize I use arguments I don't know much about

2024-05-01
2024-05-02
  • Danish Bronco

    Danish Bronco - 2024-05-01

    Hi everyone,

    I've used ImDisk Toolkit for a good number of years now, and oh boy, the things we take for granted!

    For example, I've written .bat files to create a RAM Disk on startup and install a pagefile in it. In fact, I've created two of those, and I've written the .bat file by following an example I found on a website somewhere (can't remember where, don't ask!).

    The thing is, I'm curious. I know what curiosity did to the cat, but I really want to know more about the syntax I use in that .bat file, so if someone could tell me exactly what those arguments do and what purpose they serve, I'd be forever grateful.

    Here's the the script:

    imdisk -a -s 4095M -m P: -p "/fs:fat /q /y"

    I left out the part where swapadd creates the pagefile because it's pretty straightforward, but I'd really like to know what all those switches actually do.

     

    Last edit: Danish Bronco 2024-05-01
  • v77

    v77 - 2024-05-01

    By the way, the GUI now allows to start a script just after the ramdisk creation. As it run as a service at system startup, you could have your ramdisk ready sooner.

    About the options of the command line utility "imdisk.exe", I would recommend to enter "imdisk.exe" in a command prompt, without argument, to see the (very long) syntax help.

     
  • Danish Bronco

    Danish Bronco - 2024-05-02

    Thanks for the tip(s)! Problem is, when you have multiple RAM disks, the GUI tends to snowball the settings of one disk onto the others (file system, size, for example). Using a .bat file solved that for me.

    I'm gonna try to run my script from inside the GUI, though. I've set up my RAM disk .bat file to start when I open my session, because I've got Throttlestop launching on startup (scheduled task) and it tends to reside in my Temp folder. Maybe I'll try to launch the .bat file on Windows startup instead.

    Anyway, thanks for taking the time. Cheers!

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.