VBoxManage export Filname with date

Discussions related to using VirtualBox on Windows hosts.
Post Reply
lhoem
Posts: 1
Joined: 15. Jul 2013, 15:02

VBoxManage export Filname with date

Post by lhoem »

Hello!

I try to make an export with a batchfile. Can I make an automated rename to the ovf file with date or other variables.

Example:
VBoxName: Server1
Date of the export: 07/15/2013
Batch-Command "c:\Program Files\Oracle\VirtualBox\VBoxManage.exe" export "Server1" --output c:\vm_backup\server1_date%.ovf

The file ist named: server1_07152013.ovf in the path c:\vm_backup\

Is this possible?

Regards
Lothar
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: VBoxManage export Filname with date

Post by noteirak »

Yes you can, but that's a question for the Windows forum. Virtualbox itself doesn't support variables, you need to do that in the CMD environment.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Post Reply