Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Need a fairly simple .bat file made
New Posts  All Forums:Forum Nav:

Need a fairly simple .bat file made

post #1 of 16
Thread Starter 
It can be anything but from what I understand a .bat would probably be easiest. I use to know Java and could probably be done easily in that too. kinda wish I still knew java now.

What I need is this:

To take this file named "mission.sqf" located on my C:\ that has the following text in it:
Warning: Spoiler! (Click to show)
Code:
activateAddons [
];

activateAddons [];
initAmbientLife;

_this = createCenter west;
_center_0 = _this;

_group_0 = createGroup _center_0;

_vehicle_133 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Misc_Cargo1C", [3594.9182, 6891.0596], [], 0, "CAN_COLLIDE"];
  _vehicle_133 = _this;
  _this setDir -35.360973;
  _this setPos [3594.9182, 6891.0596];
};

_vehicle_166 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Fuel_tank_big", [3609.8005, 6936.105], [], 0, "CAN_COLLIDE"];
  _vehicle_166 = _this;
  _this setDir 47.520691;
  _this setPos [3609.8005, 6936.105];
};

_vehicle_168 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Ind_TankSmall2", [3600.8403, 6945.2217, 0.00012207031], [], 0, "CAN_COLLIDE"];
  _vehicle_168 = _this;
  _this setDir 46.405239;
  _this setPos [3600.8403, 6945.2217, 0.00012207031];
};

_this = createCenter west;
_center_1 = _this;

_unit_5 = objNull;
if (true) then
{
  _this = _group_0 createUnit ["BAF_Soldier_AA_W", [3583.3784, 6931.1084, 9.1552734e-005], [], 0, "CAN_COLLIDE"];
  _unit_5 = _this;
  _this setUnitAbility 0.60000002;
  if (false) then {_group_0 selectLeader _this;};
  if (true) then {selectPlayer _this;};
  if (true) then {setPlayable _this;};
};

_vehicle_176 = objNull;
if (true) then
{
  _this = createVehicle ["Base_WarfareBContructionSite", [3632.011, 6895.8799, 0.022900218], [], 0, "CAN_COLLIDE"];
  _vehicle_176 = _this;
  _this setDir 26.139906;
  _this setPos [3632.011, 6895.8799, 0.022900218];
};

_vehicle_177 = objNull;
if (true) then
{
  _this = createVehicle ["Base_WarfareBContructionSite", [3570.5693, 6948.2217, 3.0517578e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_177 = _this;
  _this setDir 15.886891;
  _this setPos [3570.5693, 6948.2217, 3.0517578e-005];
};

_vehicle_1665 = objNull;
if (true) then
{
  _this = createVehicle ["Land_BagFenceShort", [3590.2053, 6968.6621, 14.193733], [], 0, "CAN_COLLIDE"];
  _vehicle_1665 = _this;
  _this setDir -73.333961;
  _this setPos [3590.2053, 6968.6621, 14.193733];
};

processInitCommands;
runInitScript;
finishMissionInit;


I need it to take all of the lines that start with "_vehicle" and the 7 lines below it (8 lines total) and copy it to a new file.
I need it to basically trim out any line that would say anything other than "_vehicle". Also the size of the file may change greatly from a few KB to several MB.

Then have it insert at the top in its own line the following:
Code:
if (isServer) then {

And then insert in its own line at the bottom the following
Code:
};

Then this part is optional but if it could ask you what you would like to name the new file but with the extension .sqf that would be great. If not just name it mission.sqf again and save it to my desktop.

If you need any more information let me know.

Thanks in advance,
Josh
RoG03
(19 items)
 
First Build
(21 items)
 
 
CPUMotherboardGraphicsRAM
i7 3770k Maximus V Gene z77 670 ftw g.skill 
Hard DriveHard DriveCoolingCooling
Samsung 630 Western Digital Blue EK Black Acetal Waterblocks CPU EK Black Acetal Waterblock GPU 
CoolingCoolingCoolingCooling
EK DDC X-RES Top 100 Swiftech MCP355 160mm Radiator 120mm Radiator 
OSMonitorKeyboardPower
Windows 8 BenQ XL2411T Razor Nostromo AX750 
CaseMouseMouse Pad
FT03 Razer Taipan Razor Sphex 
CPUMotherboardGraphicsGraphics
i7 3770k P6z68-V Pro EVGA 660ti EVGA 660ti 
RAMHard DriveHard DriveHard Drive
Corsair Vengence Samsung 830 Samsung 830 Samsung 830 
Hard DriveOptical DriveCoolingCooling
Western Digital Blue Asus 24x DVD burner Corsair H100 Antec Kuhler 620 
CoolingOSMonitorKeyboard
Antec Kuhler 620 Windows 8 Pro BenQ XL2411T Razor Nostromo 
PowerCaseMouseMouse Pad
Corsair TX750 NZXT Phantom 410 R.A.T. 5 Razor Sphex 
Audio
Logitech G35 
CPUMotherboardGraphicsRAM
Intel Core i5-3570K ASUS Maximus V Gene EVGA GTX 670 G.SKILL Ripjaws X Series 8GB 
Hard DriveOptical DriveCoolingOS
Western Digital WD Blue 1TB ASUS Black SATA 24X DVD Burner CORSAIR Hydro Series H60 Windows 7 Ultimate 
MonitorKeyboardPowerCase
ASUS VS Series VS238H-P Black 23" Microsoft Black USB Wired Slim Keyboard 600 CORSAIR Enthusiast Series TX650 V2 NZXT Crafted Series Vulcan Black 
MouseAudio
RAZER DeathAdder Logitech G35 
  hide details  
Reply
RoG03
(19 items)
 
First Build
(21 items)
 
 
CPUMotherboardGraphicsRAM
i7 3770k Maximus V Gene z77 670 ftw g.skill 
Hard DriveHard DriveCoolingCooling
Samsung 630 Western Digital Blue EK Black Acetal Waterblocks CPU EK Black Acetal Waterblock GPU 
CoolingCoolingCoolingCooling
EK DDC X-RES Top 100 Swiftech MCP355 160mm Radiator 120mm Radiator 
OSMonitorKeyboardPower
Windows 8 BenQ XL2411T Razor Nostromo AX750 
CaseMouseMouse Pad
FT03 Razer Taipan Razor Sphex 
CPUMotherboardGraphicsGraphics
i7 3770k P6z68-V Pro EVGA 660ti EVGA 660ti 
RAMHard DriveHard DriveHard Drive
Corsair Vengence Samsung 830 Samsung 830 Samsung 830 
Hard DriveOptical DriveCoolingCooling
Western Digital Blue Asus 24x DVD burner Corsair H100 Antec Kuhler 620 
CoolingOSMonitorKeyboard
Antec Kuhler 620 Windows 8 Pro BenQ XL2411T Razor Nostromo 
PowerCaseMouseMouse Pad
Corsair TX750 NZXT Phantom 410 R.A.T. 5 Razor Sphex 
Audio
Logitech G35 
CPUMotherboardGraphicsRAM
Intel Core i5-3570K ASUS Maximus V Gene EVGA GTX 670 G.SKILL Ripjaws X Series 8GB 
Hard DriveOptical DriveCoolingOS
Western Digital WD Blue 1TB ASUS Black SATA 24X DVD Burner CORSAIR Hydro Series H60 Windows 7 Ultimate 
MonitorKeyboardPowerCase
ASUS VS Series VS238H-P Black 23" Microsoft Black USB Wired Slim Keyboard 600 CORSAIR Enthusiast Series TX650 V2 NZXT Crafted Series Vulcan Black 
MouseAudio
RAZER DeathAdder Logitech G35 
  hide details  
Reply
post #2 of 16
Can you provide a complete example of the output you are expecting please - I'll do it in C# for free smile.gif
Ol' Sandy
(28 items)
 
"Zeus"
(12 items)
 
Elite Preview
(6 items)
 
CPUMotherboardGraphicsRAM
Intel Xeon E3-1230v3 Gigabyte GA-Z97X-UD5H-BK MSI Gaming GTX 980 Kingston 32GB (4x8) 
Hard DriveHard DriveHard DriveHard Drive
Plextor PX-256M5S 256GB Samsung EVO 1TB Hitachi HDS721010CLA332 Hitachi HDS723020BLA642 
Hard DriveHard DriveHard DriveOptical Drive
Hitachi HDS723020BLA642 Hitachi HUA722010CLA330 WDC WD10EARS-00Z5B1 TSSTcorp CDDVDW SH-S223B 
CoolingCoolingOSMonitor
Phanteks PH-TC14PE with TY-140's Lamptron FCv5 (x2) Windows 8 Pro 64-bit Dell U2412M 
MonitorMonitorMonitorKeyboard
Dell U2412M Dell U2212HM Dell U2713HM Topre Realforce 87UB | Ducky DK9087 G2 Pro 
PowerCaseMouseMouse Pad
Corsair AX-750 Corsair Obsidian 650D Logitech G700 XTRAC Ripper XXL 
AudioAudioAudioAudio
Beyerdynamic DT-770 Pro 250ohm Schiit Bifrost DAC Schiit Asgard 2 HiVi Swan M50W 2.1 
CPUMotherboardRAMHard Drive
Intel Xeon E5-2620 Super Micro X9SRL-F-B 128GB 1333MHz LSI 9271-8i 
OSPowerCase
VMware ESXi 5.5 SeaSonic SS-400FL2 Fractal Define R3 
CPUMotherboardGraphicsRAM
Intel Core i5-3437U HP EliteBook Folio 9470m  Intel HD Graphics 4000  16GB DDR3 SDRAM 
Hard DriveOS
256GB SSD Windows 10 Insider Preview 
  hide details  
Reply
Ol' Sandy
(28 items)
 
"Zeus"
(12 items)
 
Elite Preview
(6 items)
 
CPUMotherboardGraphicsRAM
Intel Xeon E3-1230v3 Gigabyte GA-Z97X-UD5H-BK MSI Gaming GTX 980 Kingston 32GB (4x8) 
Hard DriveHard DriveHard DriveHard Drive
Plextor PX-256M5S 256GB Samsung EVO 1TB Hitachi HDS721010CLA332 Hitachi HDS723020BLA642 
Hard DriveHard DriveHard DriveOptical Drive
Hitachi HDS723020BLA642 Hitachi HUA722010CLA330 WDC WD10EARS-00Z5B1 TSSTcorp CDDVDW SH-S223B 
CoolingCoolingOSMonitor
Phanteks PH-TC14PE with TY-140's Lamptron FCv5 (x2) Windows 8 Pro 64-bit Dell U2412M 
MonitorMonitorMonitorKeyboard
Dell U2412M Dell U2212HM Dell U2713HM Topre Realforce 87UB | Ducky DK9087 G2 Pro 
PowerCaseMouseMouse Pad
Corsair AX-750 Corsair Obsidian 650D Logitech G700 XTRAC Ripper XXL 
AudioAudioAudioAudio
Beyerdynamic DT-770 Pro 250ohm Schiit Bifrost DAC Schiit Asgard 2 HiVi Swan M50W 2.1 
CPUMotherboardRAMHard Drive
Intel Xeon E5-2620 Super Micro X9SRL-F-B 128GB 1333MHz LSI 9271-8i 
OSPowerCase
VMware ESXi 5.5 SeaSonic SS-400FL2 Fractal Define R3 
CPUMotherboardGraphicsRAM
Intel Core i5-3437U HP EliteBook Folio 9470m  Intel HD Graphics 4000  16GB DDR3 SDRAM 
Hard DriveOS
256GB SSD Windows 10 Insider Preview 
  hide details  
Reply
post #3 of 16
Thread Starter 
Quote:
Originally Posted by tompsonn View Post

Can you provide a complete example of the output you are expecting please - I'll do it in C# for free smile.gif

The output I am looking for is this:

It will ask you to rename the mission.sqf as another .sqf file, preferably saved to the desktop.

and the new file will have something like this:
Code:
if (isServer) then {

_vehicle_133 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Misc_Cargo1C", [3594.9182, 6891.0596], [], 0, "CAN_COLLIDE"];
  _vehicle_133 = _this;
  _this setDir -35.360973;
  _this setPos [3594.9182, 6891.0596];
};

_vehicle_166 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Fuel_tank_big", [3609.8005, 6936.105], [], 0, "CAN_COLLIDE"];
  _vehicle_166 = _this;
  _this setDir 47.520691;
  _this setPos [3609.8005, 6936.105];
};

_vehicle_168 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Ind_TankSmall2", [3600.8403, 6945.2217, 0.00012207031], [], 0, "CAN_COLLIDE"];
  _vehicle_168 = _this;
  _this setDir 46.405239;
  _this setPos [3600.8403, 6945.2217, 0.00012207031];
};
};

The main thing is I just need to make sure that the body of the code has nothing but the _vehicles and the 7 lines below it. Sometimes when the file is originally made it might have an _object or _camera or several other options and all those cause issues with what I am trying to use the file for.

And again, thanks! Its a pain having to go through 1000 lines of code to delete small things every time I have to re-test the file.
RoG03
(19 items)
 
First Build
(21 items)
 
 
CPUMotherboardGraphicsRAM
i7 3770k Maximus V Gene z77 670 ftw g.skill 
Hard DriveHard DriveCoolingCooling
Samsung 630 Western Digital Blue EK Black Acetal Waterblocks CPU EK Black Acetal Waterblock GPU 
CoolingCoolingCoolingCooling
EK DDC X-RES Top 100 Swiftech MCP355 160mm Radiator 120mm Radiator 
OSMonitorKeyboardPower
Windows 8 BenQ XL2411T Razor Nostromo AX750 
CaseMouseMouse Pad
FT03 Razer Taipan Razor Sphex 
CPUMotherboardGraphicsGraphics
i7 3770k P6z68-V Pro EVGA 660ti EVGA 660ti 
RAMHard DriveHard DriveHard Drive
Corsair Vengence Samsung 830 Samsung 830 Samsung 830 
Hard DriveOptical DriveCoolingCooling
Western Digital Blue Asus 24x DVD burner Corsair H100 Antec Kuhler 620 
CoolingOSMonitorKeyboard
Antec Kuhler 620 Windows 8 Pro BenQ XL2411T Razor Nostromo 
PowerCaseMouseMouse Pad
Corsair TX750 NZXT Phantom 410 R.A.T. 5 Razor Sphex 
Audio
Logitech G35 
CPUMotherboardGraphicsRAM
Intel Core i5-3570K ASUS Maximus V Gene EVGA GTX 670 G.SKILL Ripjaws X Series 8GB 
Hard DriveOptical DriveCoolingOS
Western Digital WD Blue 1TB ASUS Black SATA 24X DVD Burner CORSAIR Hydro Series H60 Windows 7 Ultimate 
MonitorKeyboardPowerCase
ASUS VS Series VS238H-P Black 23" Microsoft Black USB Wired Slim Keyboard 600 CORSAIR Enthusiast Series TX650 V2 NZXT Crafted Series Vulcan Black 
MouseAudio
RAZER DeathAdder Logitech G35 
  hide details  
Reply
RoG03
(19 items)
 
First Build
(21 items)
 
 
CPUMotherboardGraphicsRAM
i7 3770k Maximus V Gene z77 670 ftw g.skill 
Hard DriveHard DriveCoolingCooling
Samsung 630 Western Digital Blue EK Black Acetal Waterblocks CPU EK Black Acetal Waterblock GPU 
CoolingCoolingCoolingCooling
EK DDC X-RES Top 100 Swiftech MCP355 160mm Radiator 120mm Radiator 
OSMonitorKeyboardPower
Windows 8 BenQ XL2411T Razor Nostromo AX750 
CaseMouseMouse Pad
FT03 Razer Taipan Razor Sphex 
CPUMotherboardGraphicsGraphics
i7 3770k P6z68-V Pro EVGA 660ti EVGA 660ti 
RAMHard DriveHard DriveHard Drive
Corsair Vengence Samsung 830 Samsung 830 Samsung 830 
Hard DriveOptical DriveCoolingCooling
Western Digital Blue Asus 24x DVD burner Corsair H100 Antec Kuhler 620 
CoolingOSMonitorKeyboard
Antec Kuhler 620 Windows 8 Pro BenQ XL2411T Razor Nostromo 
PowerCaseMouseMouse Pad
Corsair TX750 NZXT Phantom 410 R.A.T. 5 Razor Sphex 
Audio
Logitech G35 
CPUMotherboardGraphicsRAM
Intel Core i5-3570K ASUS Maximus V Gene EVGA GTX 670 G.SKILL Ripjaws X Series 8GB 
Hard DriveOptical DriveCoolingOS
Western Digital WD Blue 1TB ASUS Black SATA 24X DVD Burner CORSAIR Hydro Series H60 Windows 7 Ultimate 
MonitorKeyboardPowerCase
ASUS VS Series VS238H-P Black 23" Microsoft Black USB Wired Slim Keyboard 600 CORSAIR Enthusiast Series TX650 V2 NZXT Crafted Series Vulcan Black 
MouseAudio
RAZER DeathAdder Logitech G35 
  hide details  
Reply
post #4 of 16
Quote:
Originally Posted by Wicked x Josh View Post

The output I am looking for is this:

It will ask you to rename the mission.sqf as another .sqf file, preferably saved to the desktop.

and the new file will have something like this:
Code:
if (isServer) then {

_vehicle_133 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Misc_Cargo1C", [3594.9182, 6891.0596], [], 0, "CAN_COLLIDE"];
  _vehicle_133 = _this;
  _this setDir -35.360973;
  _this setPos [3594.9182, 6891.0596];
};

_vehicle_166 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Fuel_tank_big", [3609.8005, 6936.105], [], 0, "CAN_COLLIDE"];
  _vehicle_166 = _this;
  _this setDir 47.520691;
  _this setPos [3609.8005, 6936.105];
};

_vehicle_168 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Ind_TankSmall2", [3600.8403, 6945.2217, 0.00012207031], [], 0, "CAN_COLLIDE"];
  _vehicle_168 = _this;
  _this setDir 46.405239;
  _this setPos [3600.8403, 6945.2217, 0.00012207031];
};
};

The main thing is I just need to make sure that the body of the code has nothing but the _vehicles and the 7 lines below it. Sometimes when the file is originally made it might have an _object or _camera or several other options and all those cause issues with what I am trying to use the file for.

And again, thanks! Its a pain having to go through 1000 lines of code to delete small things every time I have to re-test the file.

Cool looks easy enough - will do when I get home tonight.
Ol' Sandy
(28 items)
 
"Zeus"
(12 items)
 
Elite Preview
(6 items)
 
CPUMotherboardGraphicsRAM
Intel Xeon E3-1230v3 Gigabyte GA-Z97X-UD5H-BK MSI Gaming GTX 980 Kingston 32GB (4x8) 
Hard DriveHard DriveHard DriveHard Drive
Plextor PX-256M5S 256GB Samsung EVO 1TB Hitachi HDS721010CLA332 Hitachi HDS723020BLA642 
Hard DriveHard DriveHard DriveOptical Drive
Hitachi HDS723020BLA642 Hitachi HUA722010CLA330 WDC WD10EARS-00Z5B1 TSSTcorp CDDVDW SH-S223B 
CoolingCoolingOSMonitor
Phanteks PH-TC14PE with TY-140's Lamptron FCv5 (x2) Windows 8 Pro 64-bit Dell U2412M 
MonitorMonitorMonitorKeyboard
Dell U2412M Dell U2212HM Dell U2713HM Topre Realforce 87UB | Ducky DK9087 G2 Pro 
PowerCaseMouseMouse Pad
Corsair AX-750 Corsair Obsidian 650D Logitech G700 XTRAC Ripper XXL 
AudioAudioAudioAudio
Beyerdynamic DT-770 Pro 250ohm Schiit Bifrost DAC Schiit Asgard 2 HiVi Swan M50W 2.1 
CPUMotherboardRAMHard Drive
Intel Xeon E5-2620 Super Micro X9SRL-F-B 128GB 1333MHz LSI 9271-8i 
OSPowerCase
VMware ESXi 5.5 SeaSonic SS-400FL2 Fractal Define R3 
CPUMotherboardGraphicsRAM
Intel Core i5-3437U HP EliteBook Folio 9470m  Intel HD Graphics 4000  16GB DDR3 SDRAM 
Hard DriveOS
256GB SSD Windows 10 Insider Preview 
  hide details  
Reply
Ol' Sandy
(28 items)
 
"Zeus"
(12 items)
 
Elite Preview
(6 items)
 
CPUMotherboardGraphicsRAM
Intel Xeon E3-1230v3 Gigabyte GA-Z97X-UD5H-BK MSI Gaming GTX 980 Kingston 32GB (4x8) 
Hard DriveHard DriveHard DriveHard Drive
Plextor PX-256M5S 256GB Samsung EVO 1TB Hitachi HDS721010CLA332 Hitachi HDS723020BLA642 
Hard DriveHard DriveHard DriveOptical Drive
Hitachi HDS723020BLA642 Hitachi HUA722010CLA330 WDC WD10EARS-00Z5B1 TSSTcorp CDDVDW SH-S223B 
CoolingCoolingOSMonitor
Phanteks PH-TC14PE with TY-140's Lamptron FCv5 (x2) Windows 8 Pro 64-bit Dell U2412M 
MonitorMonitorMonitorKeyboard
Dell U2412M Dell U2212HM Dell U2713HM Topre Realforce 87UB | Ducky DK9087 G2 Pro 
PowerCaseMouseMouse Pad
Corsair AX-750 Corsair Obsidian 650D Logitech G700 XTRAC Ripper XXL 
AudioAudioAudioAudio
Beyerdynamic DT-770 Pro 250ohm Schiit Bifrost DAC Schiit Asgard 2 HiVi Swan M50W 2.1 
CPUMotherboardRAMHard Drive
Intel Xeon E5-2620 Super Micro X9SRL-F-B 128GB 1333MHz LSI 9271-8i 
OSPowerCase
VMware ESXi 5.5 SeaSonic SS-400FL2 Fractal Define R3 
CPUMotherboardGraphicsRAM
Intel Core i5-3437U HP EliteBook Folio 9470m  Intel HD Graphics 4000  16GB DDR3 SDRAM 
Hard DriveOS
256GB SSD Windows 10 Insider Preview 
  hide details  
Reply
post #5 of 16
I hope you don't mind me posting my solution here tompsonn (I was bored waiting for a client to get back in touch):

vehicle.zip 531k .zip file

Open up your command line and navigate to where ever you've saved the attached exe. Then run the following:
Code:
vehicle.exe input.sqf > output.sqf

if you want to test the routine without saving the output then just drop the output redirect and the program will print the new file to screen:
Code:
vehicle.exe input.sqf
for example (Click to show)
Code:
c:\> vehicle.exe test.sqf 
if (isServer) then {
_vehicle_133 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Misc_Cargo1C", [3594.9182, 6891.0596], [], 0, "CAN_COLLIDE"];
  _vehicle_133 = _this;
  _this setDir -35.360973;
  _this setPos [3594.9182, 6891.0596];
};
_vehicle_166 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Fuel_tank_big", [3609.8005, 6936.105], [], 0, "CAN_COLLIDE"];
  _vehicle_166 = _this;
  _this setDir 47.520691;
  _this setPos [3609.8005, 6936.105];
};
_vehicle_168 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Ind_TankSmall2", [3600.8403, 6945.2217, 0.00012207031], [], 0, "CAN_COLLIDE"];
  _vehicle_168 = _this;
  _this setDir 46.405239;
  _this setPos [3600.8403, 6945.2217, 0.00012207031];
};
_vehicle_176 = objNull;
if (true) then
{
  _this = createVehicle ["Base_WarfareBContructionSite", [3632.011, 6895.8799, 0.022900218], [], 0, "CAN_COLLIDE"];
  _vehicle_176 = _this;
  _this setDir 26.139906;
  _this setPos [3632.011, 6895.8799, 0.022900218];
};
_vehicle_177 = objNull;
if (true) then
{
  _this = createVehicle ["Base_WarfareBContructionSite", [3570.5693, 6948.2217, 3.0517578e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_177 = _this;
  _this setDir 15.886891;
  _this setPos [3570.5693, 6948.2217, 3.0517578e-005];
};
_vehicle_1665 = objNull;
if (true) then
{
  _this = createVehicle ["Land_BagFenceShort", [3590.2053, 6968.6621, 14.193733], [], 0, "CAN_COLLIDE"];
  _vehicle_1665 = _this;
  _this setDir -73.333961;
  _this setPos [3590.2053, 6968.6621, 14.193733];
};
};
source code - written in Go lang (Click to show)
Code:
// vehicle.go
package main

import (
        "fmt"
        "io/ioutil"
        "os"
        "regexp"
)

func loadSrc(filename string) string {
        b, err := ioutil.ReadFile(filename)
        if err != nil {
                fmt.Println(err.Error())
                os.Exit(1)
        }

        return string(b)
}

func main() {
        if len(os.Args) == 1 {
                fmt.Println("No filename given")
                os.Exit(1)
        }

        input := loadSrc(os.Args[1])

        rx, err := regexp.Compile(`(?ms)^_vehicle.*?\n\};`)
        if err != nil {
                fmt.Println(err)
                os.Exit(1)
        }
        matches := rx.FindAllStringSubmatch(input, -1)

        fmt.Println("if (isServer) then {")
        for _, s := range matches {
                fmt.Println(s[0])
        }
        fmt.Println("};")
}

Edited by Plan9 - 6/12/13 at 12:34pm
post #6 of 16
Fine with me, saves me having to do it tongue.gif
Ol' Sandy
(28 items)
 
"Zeus"
(12 items)
 
Elite Preview
(6 items)
 
CPUMotherboardGraphicsRAM
Intel Xeon E3-1230v3 Gigabyte GA-Z97X-UD5H-BK MSI Gaming GTX 980 Kingston 32GB (4x8) 
Hard DriveHard DriveHard DriveHard Drive
Plextor PX-256M5S 256GB Samsung EVO 1TB Hitachi HDS721010CLA332 Hitachi HDS723020BLA642 
Hard DriveHard DriveHard DriveOptical Drive
Hitachi HDS723020BLA642 Hitachi HUA722010CLA330 WDC WD10EARS-00Z5B1 TSSTcorp CDDVDW SH-S223B 
CoolingCoolingOSMonitor
Phanteks PH-TC14PE with TY-140's Lamptron FCv5 (x2) Windows 8 Pro 64-bit Dell U2412M 
MonitorMonitorMonitorKeyboard
Dell U2412M Dell U2212HM Dell U2713HM Topre Realforce 87UB | Ducky DK9087 G2 Pro 
PowerCaseMouseMouse Pad
Corsair AX-750 Corsair Obsidian 650D Logitech G700 XTRAC Ripper XXL 
AudioAudioAudioAudio
Beyerdynamic DT-770 Pro 250ohm Schiit Bifrost DAC Schiit Asgard 2 HiVi Swan M50W 2.1 
CPUMotherboardRAMHard Drive
Intel Xeon E5-2620 Super Micro X9SRL-F-B 128GB 1333MHz LSI 9271-8i 
OSPowerCase
VMware ESXi 5.5 SeaSonic SS-400FL2 Fractal Define R3 
CPUMotherboardGraphicsRAM
Intel Core i5-3437U HP EliteBook Folio 9470m  Intel HD Graphics 4000  16GB DDR3 SDRAM 
Hard DriveOS
256GB SSD Windows 10 Insider Preview 
  hide details  
Reply
Ol' Sandy
(28 items)
 
"Zeus"
(12 items)
 
Elite Preview
(6 items)
 
CPUMotherboardGraphicsRAM
Intel Xeon E3-1230v3 Gigabyte GA-Z97X-UD5H-BK MSI Gaming GTX 980 Kingston 32GB (4x8) 
Hard DriveHard DriveHard DriveHard Drive
Plextor PX-256M5S 256GB Samsung EVO 1TB Hitachi HDS721010CLA332 Hitachi HDS723020BLA642 
Hard DriveHard DriveHard DriveOptical Drive
Hitachi HDS723020BLA642 Hitachi HUA722010CLA330 WDC WD10EARS-00Z5B1 TSSTcorp CDDVDW SH-S223B 
CoolingCoolingOSMonitor
Phanteks PH-TC14PE with TY-140's Lamptron FCv5 (x2) Windows 8 Pro 64-bit Dell U2412M 
MonitorMonitorMonitorKeyboard
Dell U2412M Dell U2212HM Dell U2713HM Topre Realforce 87UB | Ducky DK9087 G2 Pro 
PowerCaseMouseMouse Pad
Corsair AX-750 Corsair Obsidian 650D Logitech G700 XTRAC Ripper XXL 
AudioAudioAudioAudio
Beyerdynamic DT-770 Pro 250ohm Schiit Bifrost DAC Schiit Asgard 2 HiVi Swan M50W 2.1 
CPUMotherboardRAMHard Drive
Intel Xeon E5-2620 Super Micro X9SRL-F-B 128GB 1333MHz LSI 9271-8i 
OSPowerCase
VMware ESXi 5.5 SeaSonic SS-400FL2 Fractal Define R3 
CPUMotherboardGraphicsRAM
Intel Core i5-3437U HP EliteBook Folio 9470m  Intel HD Graphics 4000  16GB DDR3 SDRAM 
Hard DriveOS
256GB SSD Windows 10 Insider Preview 
  hide details  
Reply
post #7 of 16
How to batch
Code:
echo if (isServer) then { > new.sqf
type original.sqf >> new.sqf
echo }; >> new.sqf

Nvm should read better tongue.gif
Edited by Jiiks - 6/12/13 at 9:33am
Haswell
(21 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 4770K @ 4Ghz Gigabyte Z87X-UD5H Sapphire Radeon R9 290 Vapor-X G.Skill RipjawsZ 4x4GB 2400Mhz 
Hard DriveHard DriveHard DriveHard Drive
Crucial M4 126GB Crucial MX100 4x512GB WD Caviar Green EZRX Crucial M500 120GB 
Optical DriveCoolingOSMonitor
Samsung DVD Corsair Hydro H105 Windows 7 Ultimate Acer B276HK 
MonitorMonitorKeyboardPower
Dell P2314H Samsung SA700 Logitech G710+ Seasonic P-660 XP2 
CaseMouseMouse PadAudio
Fractal Design Arc Midi R2 Razer Deathadder 2013 Mionix Sargas 900 Asus Xonar DX/XD 
Audio
Beyerdynamics Custome One Pro White 
  hide details  
Reply
Haswell
(21 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 4770K @ 4Ghz Gigabyte Z87X-UD5H Sapphire Radeon R9 290 Vapor-X G.Skill RipjawsZ 4x4GB 2400Mhz 
Hard DriveHard DriveHard DriveHard Drive
Crucial M4 126GB Crucial MX100 4x512GB WD Caviar Green EZRX Crucial M500 120GB 
Optical DriveCoolingOSMonitor
Samsung DVD Corsair Hydro H105 Windows 7 Ultimate Acer B276HK 
MonitorMonitorKeyboardPower
Dell P2314H Samsung SA700 Logitech G710+ Seasonic P-660 XP2 
CaseMouseMouse PadAudio
Fractal Design Arc Midi R2 Razer Deathadder 2013 Mionix Sargas 900 Asus Xonar DX/XD 
Audio
Beyerdynamics Custome One Pro White 
  hide details  
Reply
post #8 of 16
Quote:
Originally Posted by Plan9 View Post

I hope you don't mind me posting my solution here tompsonn (I was bored waiting for a client to get back in touch):

Open up your command line and navigate to where ever you've saved the attached exe. Then run the following:
Code:
vehical.exe input.sqf > output.sqf

if you want to test the routine without saving the output then just drop the output redirect and the program will print the new file to screen:
Code:
vehical.exe input.sqf
for example (Click to show)
Code:
c:\> vehical.exe test.sqf 
if (isServer) then {
_vehicle_133 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Misc_Cargo1C", [3594.9182, 6891.0596], [], 0, "CAN_COLLIDE"];
  _vehicle_133 = _this;
  _this setDir -35.360973;
  _this setPos [3594.9182, 6891.0596];
};

_vehicle_166 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Fuel_tank_big", [3609.8005, 6936.105], [], 0, "CAN_COLLIDE"];
  _vehicle_166 = _this;
  _this setDir 47.520691;
  _this setPos [3609.8005, 6936.105];
};

_vehicle_168 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Ind_TankSmall2", [3600.8403, 6945.2217, 0.00012207031], [], 0, "CAN_COLLIDE"];
  _vehicle_168 = _this;
  _this setDir 46.405239;
  _this setPos [3600.8403, 6945.2217, 0.00012207031];
};

_this = createCenter west;
_center_1 = _this;

_unit_5 = objNull;
if (true) then
{
  _this = _group_0 createUnit ["BAF_Soldier_AA_W", [3583.3784, 6931.1084, 9.1552734e-005], [], 0, "CAN_COLLIDE"];
  _unit_5 = _this;
  _this setUnitAbility 0.60000002;
  if (false) then {_group_0 selectLeader _this;};
  if (true) then {selectPlayer _this;};
  if (true) then {setPlayable _this;};
};

_vehicle_176 = objNull;
if (true) then
{
  _this = createVehicle ["Base_WarfareBContructionSite", [3632.011, 6895.8799, 0.022900218], [], 0, "CAN_COLLIDE"];
  _vehicle_176 = _this;
  _this setDir 26.139906;
  _this setPos [3632.011, 6895.8799, 0.022900218];
};

_vehicle_177 = objNull;
if (true) then
{
  _this = createVehicle ["Base_WarfareBContructionSite", [3570.5693, 6948.2217, 3.0517578e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_177 = _this;
  _this setDir 15.886891;
  _this setPos [3570.5693, 6948.2217, 3.0517578e-005];
};

_vehicle_1665 = objNull;
if (true) then
{
  _this = createVehicle ["Land_BagFenceShort", [3590.2053, 6968.6621, 14.193733], [], 0, "CAN_COLLIDE"];
  _vehicle_1665 = _this;
  _this setDir -73.333961;
  _this setPos [3590.2053, 6968.6621, 14.193733];
};

};
source code - written in Go lang (Click to show)
Code:
// vehical.go
package main

import (
        "fmt"
        "io/ioutil"
        "os"
        "regexp"
)

func loadSrc(filename string) string {
        b, err := ioutil.ReadFile(filename)
        if err != nil {
                fmt.Println(err.Error())
                os.Exit(1)
        }

        return string(b)
}

func main() {
        if len(os.Args) == 1 {
                fmt.Println("No filename given")
                os.Exit(1)
        }

        input := loadSrc(os.Args[1])

        rx, _ := regexp.Compile(`(?ms)_vehicle_.*\n\};\n`)
        matches := rx.FindAllStringSubmatch(input, -1)

        fmt.Println("if (isServer) then {")
        for _, s := range matches[0] {
                fmt.Println(s)
        }
        fmt.Println("};")
}

edit - i just noticed i've spelled "vehicle" wrong. Feel free to rename the executable - it wont brake the program

If that example is the output then it's invalid

Shouldn't include this:
Code:
_this = createCenter west;
_center_1 = _this;

_unit_5 = objNull;
if (true) then
{
  _this = _group_0 createUnit ["BAF_Soldier_AA_W", [3583.3784, 6931.1084, 9.1552734e-005], [], 0, "CAN_COLLIDE"];
  _unit_5 = _this;
  _this setUnitAbility 0.60000002;
  if (false) then {_group_0 selectLeader _this;};
  if (true) then {selectPlayer _this;};
  if (true) then {setPlayable _this;};
};

If i understood the op correctly this time tongue.gif

Anyhow i wrote a c# one that works if the line count is always the same...

Here's the source for it: Warning: Spoiler! (Click to show)
Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;

namespace WindowsFormsApplication12
{
    public partial class Form1 : Form
    {
        List<String> outPut = new List<string>();
        String outputPath;
        String inputPath;

        public Form1()
        {
            InitializeComponent();

            tbInput.MouseClick += tbInput_MouseClick;
            tbOutput.MouseClick += tbOutput_MouseClick;

        }

        void tbOutput_MouseClick(object sender, MouseEventArgs e)
        {
            SaveFileDialog sfd = new SaveFileDialog();
            sfd.ShowDialog(this);
            outputPath = sfd.FileName;
            tbOutput.Text = outputPath;
        }

        void tbInput_MouseClick(object sender, MouseEventArgs e)
        {
            OpenFileDialog ofd = new OpenFileDialog();
            ofd.ShowDialog(this);
            inputPath = ofd.FileName;
            tbInput.Text = inputPath;

        }

        private void button1_Click(object sender, EventArgs e)
        {
            outPut.Clear();

            string[] lines = File.ReadAllLines(@inputPath);

            outPut.Add("if (isServer) then {");

            for (int i = 0; i < lines.Length; i++)
            {
                if (lines[i].Contains("_vehicle"))
                {
                    outPut.Add(lines[i]);
                    for (int i2 = i + 1; i2 < i + 8; i2++)
                        outPut.Add(lines[i2]);

                    i += 7;
                }
            }

            outPut.Add("};");

            File.WriteAllLines(@outputPath, outPut.ToArray());
        }
    }
}



And here's a compiled exe(old, new one in the end)
http://www.multiupload.nl/CZMPR5IUD0



With it, this:
Warning: Spoiler! (Click to show)
activateAddons [
];

activateAddons [];
initAmbientLife;

_this = createCenter west;
_center_0 = _this;

_group_0 = createGroup _center_0;

_vehicle_133 = objNull;
if (true) then
{
_this = createVehicle ["Land_Misc_Cargo1C", [3594.9182, 6891.0596], [], 0, "CAN_COLLIDE"];
_vehicle_133 = _this;
_this setDir -35.360973;
_this setPos [3594.9182, 6891.0596];
};

_vehicle_166 = objNull;
if (true) then
{
_this = createVehicle ["Land_Fuel_tank_big", [3609.8005, 6936.105], [], 0, "CAN_COLLIDE"];
_vehicle_166 = _this;
_this setDir 47.520691;
_this setPos [3609.8005, 6936.105];
};

_vehicle_168 = objNull;
if (true) then
{
_this = createVehicle ["Land_Ind_TankSmall2", [3600.8403, 6945.2217, 0.00012207031], [], 0, "CAN_COLLIDE"];
_vehicle_168 = _this;
_this setDir 46.405239;
_this setPos [3600.8403, 6945.2217, 0.00012207031];
};

_this = createCenter west;
_center_1 = _this;

_unit_5 = objNull;
if (true) then
{
_this = _group_0 createUnit ["BAF_Soldier_AA_W", [3583.3784, 6931.1084, 9.1552734e-005], [], 0, "CAN_COLLIDE"];
_unit_5 = _this;
_this setUnitAbility 0.60000002;
if (false) then {_group_0 selectLeader _this;};
if (true) then {selectPlayer _this;};
if (true) then {setPlayable _this;};
};

_vehicle_176 = objNull;
if (true) then
{
_this = createVehicle ["Base_WarfareBContructionSite", [3632.011, 6895.8799, 0.022900218], [], 0, "CAN_COLLIDE"];
_vehicle_176 = _this;
_this setDir 26.139906;
_this setPos [3632.011, 6895.8799, 0.022900218];
};

_vehicle_177 = objNull;
if (true) then
{
_this = createVehicle ["Base_WarfareBContructionSite", [3570.5693, 6948.2217, 3.0517578e-005], [], 0, "CAN_COLLIDE"];
_vehicle_177 = _this;
_this setDir 15.886891;
_this setPos [3570.5693, 6948.2217, 3.0517578e-005];
};

_vehicle_1665 = objNull;
if (true) then
{
_this = createVehicle ["Land_BagFenceShort", [3590.2053, 6968.6621, 14.193733], [], 0, "CAN_COLLIDE"];
_vehicle_1665 = _this;
_this setDir -73.333961;
_this setPos [3590.2053, 6968.6621, 14.193733];
};

processInitCommands;
runInitScript;
finishMissionInit;

Becomes this:
Warning: Spoiler! (Click to show)
if (isServer) then {
_vehicle_133 = objNull;
if (true) then
{
_this = createVehicle ["Land_Misc_Cargo1C", [3594.9182, 6891.0596], [], 0, "CAN_COLLIDE"];
_vehicle_133 = _this;
_this setDir -35.360973;
_this setPos [3594.9182, 6891.0596];
};
_vehicle_166 = objNull;
if (true) then
{
_this = createVehicle ["Land_Fuel_tank_big", [3609.8005, 6936.105], [], 0, "CAN_COLLIDE"];
_vehicle_166 = _this;
_this setDir 47.520691;
_this setPos [3609.8005, 6936.105];
};
_vehicle_168 = objNull;
if (true) then
{
_this = createVehicle ["Land_Ind_TankSmall2", [3600.8403, 6945.2217, 0.00012207031], [], 0, "CAN_COLLIDE"];
_vehicle_168 = _this;
_this setDir 46.405239;
_this setPos [3600.8403, 6945.2217, 0.00012207031];
};
_vehicle_176 = objNull;
if (true) then
{
_this = createVehicle ["Base_WarfareBContructionSite", [3632.011, 6895.8799, 0.022900218], [], 0, "CAN_COLLIDE"];
_vehicle_176 = _this;
_this setDir 26.139906;
_this setPos [3632.011, 6895.8799, 0.022900218];
};
_vehicle_177 = objNull;
if (true) then
{
_this = createVehicle ["Base_WarfareBContructionSite", [3570.5693, 6948.2217, 3.0517578e-005], [], 0, "CAN_COLLIDE"];
_vehicle_177 = _this;
_this setDir 15.886891;
_this setPos [3570.5693, 6948.2217, 3.0517578e-005];
};
_vehicle_1665 = objNull;
if (true) then
{
_this = createVehicle ["Land_BagFenceShort", [3590.2053, 6968.6621, 14.193733], [], 0, "CAN_COLLIDE"];
_vehicle_1665 = _this;
_this setDir -73.333961;
_this setPos [3590.2053, 6968.6621, 14.193733];
};
};


Edit:

Came back and quickly fixed it:
No longer adds 8 lines but everything untill "};"

New source: Warning: Spoiler! (Click to show)
Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;

namespace WindowsFormsApplication12
{
    public partial class Form1 : Form
    {
        List<String> outPut = new List<string>();
        String outputPath;
        String inputPath;

        public Form1()
        {
            InitializeComponent();

            tbInput.MouseClick += tbInput_MouseClick;
            tbOutput.MouseClick += tbOutput_MouseClick;

        }

        void tbOutput_MouseClick(object sender, MouseEventArgs e)
        {
            SaveFileDialog sfd = new SaveFileDialog();
            sfd.ShowDialog(this);
            outputPath = sfd.FileName;
            tbOutput.Text = outputPath;
        }

        void tbInput_MouseClick(object sender, MouseEventArgs e)
        {
            OpenFileDialog ofd = new OpenFileDialog();
            ofd.ShowDialog(this);
            inputPath = ofd.FileName;
            tbInput.Text = inputPath;

        }

        private void button1_Click(object sender, EventArgs e)
        {
            outPut.Clear();

            string[] lines = File.ReadAllLines(@inputPath);
            bool adding = false;
            outPut.Add("if (isServer) then {");

            for (int i = 0; i < lines.Length; i++)
            {
                if (lines[i].Contains("_vehicle"))
                    adding = true;

                if (adding)
                    outPut.Add(lines[i]);

                if (lines[i].Contains("};"))
                    adding = false;
            }

            outPut.Add("};");

            File.WriteAllLines(@outputPath, outPut.ToArray());
        }
    }
}

New exe: http://www.multiupload.nl/043P0EHFHI
Edited by Jiiks - 6/13/13 at 6:53am
Haswell
(21 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 4770K @ 4Ghz Gigabyte Z87X-UD5H Sapphire Radeon R9 290 Vapor-X G.Skill RipjawsZ 4x4GB 2400Mhz 
Hard DriveHard DriveHard DriveHard Drive
Crucial M4 126GB Crucial MX100 4x512GB WD Caviar Green EZRX Crucial M500 120GB 
Optical DriveCoolingOSMonitor
Samsung DVD Corsair Hydro H105 Windows 7 Ultimate Acer B276HK 
MonitorMonitorKeyboardPower
Dell P2314H Samsung SA700 Logitech G710+ Seasonic P-660 XP2 
CaseMouseMouse PadAudio
Fractal Design Arc Midi R2 Razer Deathadder 2013 Mionix Sargas 900 Asus Xonar DX/XD 
Audio
Beyerdynamics Custome One Pro White 
  hide details  
Reply
Haswell
(21 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 4770K @ 4Ghz Gigabyte Z87X-UD5H Sapphire Radeon R9 290 Vapor-X G.Skill RipjawsZ 4x4GB 2400Mhz 
Hard DriveHard DriveHard DriveHard Drive
Crucial M4 126GB Crucial MX100 4x512GB WD Caviar Green EZRX Crucial M500 120GB 
Optical DriveCoolingOSMonitor
Samsung DVD Corsair Hydro H105 Windows 7 Ultimate Acer B276HK 
MonitorMonitorKeyboardPower
Dell P2314H Samsung SA700 Logitech G710+ Seasonic P-660 XP2 
CaseMouseMouse PadAudio
Fractal Design Arc Midi R2 Razer Deathadder 2013 Mionix Sargas 900 Asus Xonar DX/XD 
Audio
Beyerdynamics Custome One Pro White 
  hide details  
Reply
post #9 of 16
Quote:
Originally Posted by Jiiks View Post

If that example is the output then it's invalid

Shouldn't include this:
Code:
_this = createCenter west;
_center_1 = _this;

_unit_5 = objNull;
if (true) then
{
  _this = _group_0 createUnit ["BAF_Soldier_AA_W", [3583.3784, 6931.1084, 9.1552734e-005], [], 0, "CAN_COLLIDE"];
  _unit_5 = _this;
  _this setUnitAbility 0.60000002;
  if (false) then {_group_0 selectLeader _this;};
  if (true) then {selectPlayer _this;};
  if (true) then {setPlayable _this;};
};
The whole point of his requirements was to grep that stuff out:
Quote:
I need it to basically trim out any line that would say anything other than "_vehicle".


[edit]
Quote:
Originally Posted by Jiiks View Post

Anyhow i wrote a c# one that works if the line count is always the same...
My code is sympathetic to the source language (ie it doesn't assume that the _vehicle section is always n lines long) tongue.gif
Edited by Plan9 - 6/12/13 at 10:42am
post #10 of 16
Quote:
Originally Posted by Plan9 View Post

The whole point of his requirements was to grep that stuff out:
[edit]
My code is sympathetic to the source language (ie it doesn't assume that the _vehicle section is always n lines long) tongue.gif
Yeah i wrote that quickly since he said it's always 8 lines tongue.gif What i meant is that your example left that part in while it should be removed, the block doesn't begin with "_vehicle"
Haswell
(21 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 4770K @ 4Ghz Gigabyte Z87X-UD5H Sapphire Radeon R9 290 Vapor-X G.Skill RipjawsZ 4x4GB 2400Mhz 
Hard DriveHard DriveHard DriveHard Drive
Crucial M4 126GB Crucial MX100 4x512GB WD Caviar Green EZRX Crucial M500 120GB 
Optical DriveCoolingOSMonitor
Samsung DVD Corsair Hydro H105 Windows 7 Ultimate Acer B276HK 
MonitorMonitorKeyboardPower
Dell P2314H Samsung SA700 Logitech G710+ Seasonic P-660 XP2 
CaseMouseMouse PadAudio
Fractal Design Arc Midi R2 Razer Deathadder 2013 Mionix Sargas 900 Asus Xonar DX/XD 
Audio
Beyerdynamics Custome One Pro White 
  hide details  
Reply
Haswell
(21 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 4770K @ 4Ghz Gigabyte Z87X-UD5H Sapphire Radeon R9 290 Vapor-X G.Skill RipjawsZ 4x4GB 2400Mhz 
Hard DriveHard DriveHard DriveHard Drive
Crucial M4 126GB Crucial MX100 4x512GB WD Caviar Green EZRX Crucial M500 120GB 
Optical DriveCoolingOSMonitor
Samsung DVD Corsair Hydro H105 Windows 7 Ultimate Acer B276HK 
MonitorMonitorKeyboardPower
Dell P2314H Samsung SA700 Logitech G710+ Seasonic P-660 XP2 
CaseMouseMouse PadAudio
Fractal Design Arc Midi R2 Razer Deathadder 2013 Mionix Sargas 900 Asus Xonar DX/XD 
Audio
Beyerdynamics Custome One Pro White 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Coding and Programming
Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Need a fairly simple .bat file made