Solved Windows 7 VirtualBox

WyattWhiteEagle

Member
Member
VIP
Local time
11:21 AM
Messages
171
This is my first time using a VM.
Would the batch files still work?
Does there need to be some kind of specifics within the batch file to work in my VM?

Viewing the help pages seem to mention some difference's from Windows 11/10/8 and other editions.

Such as "rem" and "::" pretty much does the same thing in Windows 11/10 but somehow here in 7 "rem" seem's to record something somewhere and I don't know if "::" is even a thing here in 7.
 
Last edited:

My Computer My Computer

At a glance

Microsoft Windows 7 Home Premium 64-bit 7601 ...Intel(R) Core(TM) i3-N3054.00 GBStandard VGA Graphics Adapter
Computer type
Laptop
Computer Manufacturer/Model Number
LENOVO IdeaPad Slim 3 15IAN8
OS
Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM) i3-N305
Motherboard
Oracle Corporation VirtualBox
Memory
4.00 GB
Graphics Card(s)
Standard VGA Graphics Adapter
Sound Card
High Definition Audio Device
Hard Drives
VBOX HARDDISK ATA Device
I don't understand what you're asking. But I use virtualbox. Version 6 is the last version officially supporting windows however I've read here that another member got virtual box 7 to work on Windows 7 something I haven't tested.
 

My Computers My Computers

  • At a glance

    Windows 7 pro/Windows 10 ProIntel i7 860 Quad core 2.8 ghz8 gbATI Radeon HD 5770 1 gb ram
    Computer type
    PC/Desktop
    Computer Manufacturer/Model Number
    HP Pavillion Elite HPE-250f
    OS
    Windows 7 pro/Windows 10 Pro
    CPU
    Intel i7 860 Quad core 2.8 ghz
    Memory
    8 gb
    Graphics Card(s)
    ATI Radeon HD 5770 1 gb ram
    Monitor(s) Displays
    Alienware 25 AW2521HF & Viewsonic
    Screen Resolution
    1920 x1080 & 1680x1050
    Hard Drives
    WD blue 1 tb & 500 gb.
    Browser
    FF of course.
    Other Info
    https://www.bestbuy.com/site/hp-pavilion-elite-desktop-intel-core-i7-processor-8gb-memory-1tb-hard-drive/9921493.p?skuId=9921493
  • At a glance

    Windows 2012 R2 Data center/Linux Minti3 9100 3.6GHz, 8M cache, 4C/4T8GB 2666MT/s DDR4 ECC UDIMM
    Computer type
    PC/Desktop
    System Manufacturer/Model Number
    Dell Poweredge T140
    OS
    Windows 2012 R2 Data center/Linux Mint
    CPU
    i3 9100 3.6GHz, 8M cache, 4C/4T
    Memory
    8GB 2666MT/s DDR4 ECC UDIMM
    Monitor(s) Displays
    Viewsonic
    Screen Resolution
    1680x1050
    Hard Drives
    1 TB & 750 GB
    Other Info
    https://www.dell.com/en-us/work/shop/productdetailstxn/poweredge-t140?~ck=bt
For general rule's of thumb, I did find Brink's batch tutorial (there's about 4 or 6 different one's).
Those use a single colon ":" at the beginning of specific line's.
I didn't check for thing's too extensively though.

I'm asking if the batch file inside a VM uses the same "language" as if it isn't a VM.

For example...
Rem help
:help diskpart
:: help wmic
 
Last edited:

My Computer My Computer

At a glance

Microsoft Windows 7 Home Premium 64-bit 7601 ...Intel(R) Core(TM) i3-N3054.00 GBStandard VGA Graphics Adapter
Computer type
Laptop
Computer Manufacturer/Model Number
LENOVO IdeaPad Slim 3 15IAN8
OS
Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM) i3-N305
Motherboard
Oracle Corporation VirtualBox
Memory
4.00 GB
Graphics Card(s)
Standard VGA Graphics Adapter
Sound Card
High Definition Audio Device
Hard Drives
VBOX HARDDISK ATA Device
Paul Black and Brink, their "bat file helps" collectively here on the forums have turned out to contain an answer to my question here.
The look's of it are the same on a regular "clean install" and for a windows guest VM.
For very specific example's for your system and setup, check the help pages.


 
Last edited:

My Computer My Computer

At a glance

Microsoft Windows 7 Home Premium 64-bit 7601 ...Intel(R) Core(TM) i3-N3054.00 GBStandard VGA Graphics Adapter
Computer type
Laptop
Computer Manufacturer/Model Number
LENOVO IdeaPad Slim 3 15IAN8
OS
Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM) i3-N305
Motherboard
Oracle Corporation VirtualBox
Memory
4.00 GB
Graphics Card(s)
Standard VGA Graphics Adapter
Sound Card
High Definition Audio Device
Hard Drives
VBOX HARDDISK ATA Device
Bat files (and pretty much everything else) works exactly the same as in a real machine, they're interpreted by the guest OS (and not the host OS) so you'll have the very same feature set as in Win7, VM or not

In either case, REM is the way to add comments to a bat file. A double colon is NOT a comment, and it never was, it's a dirty trick.
A colon represents a label you can jump to, while everything after it is the label name. By using a double colon you're actually creating a jump label whose name is colon plus everything after it, and if not referenced it's effectively a no-op. A dirty trick, but not really a comment. VM has no relation in this.
 
Last edited:

My Computer My Computer

At a glance

Windows 7 Ultimate x64Intel Core i7-740QM8 GB DDR3NVIDIA GeForce 330GT
Computer type
Laptop
Computer Manufacturer/Model Number
Toshiba Sattelite A665-S6092
OS
Windows 7 Ultimate x64
CPU
Intel Core i7-740QM
Memory
8 GB DDR3
Graphics Card(s)
NVIDIA GeForce 330GT
Screen Resolution
1366x768
Hard Drives
Samsung 840 SSD 500GB
1TB USB3 external HD
Cooling
Coolermaster Notepal U3 notebook cooling pad
Internet Speed
3mbps ASDL
Antivirus
ClamWin 0.98.7
Browser
Opera 12.17 x86 (main), Firefox 38 (sec), IE11 (last resort)
Awesome answer.
So a regular colon, ie ":" (not a semicolon, ie ";") does the same thing as "Rem"?
 

My Computer My Computer

At a glance

Microsoft Windows 7 Home Premium 64-bit 7601 ...Intel(R) Core(TM) i3-N3054.00 GBStandard VGA Graphics Adapter
Computer type
Laptop
Computer Manufacturer/Model Number
LENOVO IdeaPad Slim 3 15IAN8
OS
Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM) i3-N305
Motherboard
Oracle Corporation VirtualBox
Memory
4.00 GB
Graphics Card(s)
Standard VGA Graphics Adapter
Sound Card
High Definition Audio Device
Hard Drives
VBOX HARDDISK ATA Device
Awesome answer.
So a regular colon, ie ":" (not a semicolon, ie ";") does the same thing as "Rem"?

My bad, I meant "colon" instead of "semicolon", just edited my post.
In short, and for some cases, yes, it can be the same. It's highly recommended however that you use REM for comments instead, which are real comments and not just unused labels.
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64Intel Core i7-740QM8 GB DDR3NVIDIA GeForce 330GT
Computer type
Laptop
Computer Manufacturer/Model Number
Toshiba Sattelite A665-S6092
OS
Windows 7 Ultimate x64
CPU
Intel Core i7-740QM
Memory
8 GB DDR3
Graphics Card(s)
NVIDIA GeForce 330GT
Screen Resolution
1366x768
Hard Drives
Samsung 840 SSD 500GB
1TB USB3 external HD
Cooling
Coolermaster Notepal U3 notebook cooling pad
Internet Speed
3mbps ASDL
Antivirus
ClamWin 0.98.7
Browser
Opera 12.17 x86 (main), Firefox 38 (sec), IE11 (last resort)
Back
Top