Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Windows › need a batch program/SOLVED IT
New Posts  All Forums:Forum Nav:

need a batch program/SOLVED IT

post #1 of 9
Thread Starter 
that will take the name of a file and copy it onto itself 6 times
this way i dont have to goto the command promt and type copy name.txt + name.txt + name.txt + name.txt + name.txt + name.txt name.tx6

is it possible??
ALIENWARE CRAP
(13 items)
 
  
CPUMotherboardGraphicsRAM
opty 165 LCB9E 0646RPMW asus a8n-sli 8600gts w512 x1 G. Skill 2 gig (2x1gig) 
Hard DriveOSMonitorKeyboard
not sure off top of head windows xp home philips 200w logitech 
PowerCaseMouseMouse Pad
silverstone sst-st65zf alienware case logitech mickey mouse :D 
  hide details  
Reply
ALIENWARE CRAP
(13 items)
 
  
CPUMotherboardGraphicsRAM
opty 165 LCB9E 0646RPMW asus a8n-sli 8600gts w512 x1 G. Skill 2 gig (2x1gig) 
Hard DriveOSMonitorKeyboard
not sure off top of head windows xp home philips 200w logitech 
PowerCaseMouseMouse Pad
silverstone sst-st65zf alienware case logitech mickey mouse :D 
  hide details  
Reply
post #2 of 9
do you want six seperate copies of the same file?
Bravo
(13 items)
 
  
CPUMotherboardGraphicsRAM
X4 955 @ 3.6 Asus M479T 4870 1GB 8 GB DDR3 
Hard DriveOSPowerCase
160 GB Win 7 Antec 750w Antec 300 
  hide details  
Reply
Bravo
(13 items)
 
  
CPUMotherboardGraphicsRAM
X4 955 @ 3.6 Asus M479T 4870 1GB 8 GB DDR3 
Hard DriveOSPowerCase
160 GB Win 7 Antec 750w Antec 300 
  hide details  
Reply
post #3 of 9
I can probably program you something that will do that for you. Just take a selected file and copy it 6 times?
    
CPUMotherboardGraphicsRAM
AMD FX-6300 3.8Ghz 6-Core Asrock 990fx Extreme3 eVGA GeForce GTX650 1GB 1x8GB Corsair Vengeance 
Hard DriveCoolingOS
1TB WD Green STOCK lol Windows 8 64-bit 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
AMD FX-6300 3.8Ghz 6-Core Asrock 990fx Extreme3 eVGA GeForce GTX650 1GB 1x8GB Corsair Vengeance 
Hard DriveCoolingOS
1TB WD Green STOCK lol Windows 8 64-bit 
  hide details  
Reply
post #4 of 9
Quote:
Originally Posted by sysshock View Post
that will take the name of a file and copy it onto itself 6 times
this way i dont have to goto the command promt and type copy name.txt + name.txt + name.txt + name.txt + name.txt + name.txt name.tx6

is it possible??
Maybe something like a macro recording program?

I know I could use the macro keys on my Logitech G11 to program that function.

Perhaps there is a windows based macro program that will let you define and run macros to do that?

Just search around on things like "freeware macro recording program", etc.

Here's one I just found: http://www.freedownloadscenter.com/U...utoHotkey.html

...

    
CPUMotherboardGraphicsRAM
6700K @ 4.7ghz Asus Sabertooth Z170 Mark 1 Seahawk X 1080 ti 16gb Corsair Dominator Platinum @ 3200mhz 
Hard DriveOptical DriveCoolingOS
2TB Samsung Evo 950 LG Blu Ray / DVD  H115i Win 7 
MonitorKeyboardPowerCase
Acer XB270HU Logitech G710 EVGA 1000w Corsair 780T 
MouseMouse PadAudio
Logitech G502 My girlfriends butt. Asus z170 onboard 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
6700K @ 4.7ghz Asus Sabertooth Z170 Mark 1 Seahawk X 1080 ti 16gb Corsair Dominator Platinum @ 3200mhz 
Hard DriveOptical DriveCoolingOS
2TB Samsung Evo 950 LG Blu Ray / DVD  H115i Win 7 
MonitorKeyboardPowerCase
Acer XB270HU Logitech G710 EVGA 1000w Corsair 780T 
MouseMouse PadAudio
Logitech G502 My girlfriends butt. Asus z170 onboard 
  hide details  
Reply
post #5 of 9
Thread Starter 
i want to take teh same file and copy it onto it self.
one file copied 6 times into a new file. its like opening a text file in windows and doing a ctrl c then hitting ctrl v 5 times. (does that make sence)


btw dont mind my spelling
ALIENWARE CRAP
(13 items)
 
  
CPUMotherboardGraphicsRAM
opty 165 LCB9E 0646RPMW asus a8n-sli 8600gts w512 x1 G. Skill 2 gig (2x1gig) 
Hard DriveOSMonitorKeyboard
not sure off top of head windows xp home philips 200w logitech 
PowerCaseMouseMouse Pad
silverstone sst-st65zf alienware case logitech mickey mouse :D 
  hide details  
Reply
ALIENWARE CRAP
(13 items)
 
  
CPUMotherboardGraphicsRAM
opty 165 LCB9E 0646RPMW asus a8n-sli 8600gts w512 x1 G. Skill 2 gig (2x1gig) 
Hard DriveOSMonitorKeyboard
not sure off top of head windows xp home philips 200w logitech 
PowerCaseMouseMouse Pad
silverstone sst-st65zf alienware case logitech mickey mouse :D 
  hide details  
Reply
post #6 of 9
Quote:
Originally Posted by sysshock View Post
i want to take teh same file and copy it onto it self.
one file copied 6 times into a new file. its like opening a text file in windows and doing a ctrl c then hitting ctrl v 5 times. (does that make sence)


btw dont mind my spelling
If such a thing is even possible, and at the DOS level ... your still just inputting text and so I'd say a macro program of some kind is what you need.

..

for instance, I never type in my user name and password at forums ... I just hit the "G2" key on my keyboard and it types itself ...
    
CPUMotherboardGraphicsRAM
6700K @ 4.7ghz Asus Sabertooth Z170 Mark 1 Seahawk X 1080 ti 16gb Corsair Dominator Platinum @ 3200mhz 
Hard DriveOptical DriveCoolingOS
2TB Samsung Evo 950 LG Blu Ray / DVD  H115i Win 7 
MonitorKeyboardPowerCase
Acer XB270HU Logitech G710 EVGA 1000w Corsair 780T 
MouseMouse PadAudio
Logitech G502 My girlfriends butt. Asus z170 onboard 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
6700K @ 4.7ghz Asus Sabertooth Z170 Mark 1 Seahawk X 1080 ti 16gb Corsair Dominator Platinum @ 3200mhz 
Hard DriveOptical DriveCoolingOS
2TB Samsung Evo 950 LG Blu Ray / DVD  H115i Win 7 
MonitorKeyboardPowerCase
Acer XB270HU Logitech G710 EVGA 1000w Corsair 780T 
MouseMouse PadAudio
Logitech G502 My girlfriends butt. Asus z170 onboard 
  hide details  
Reply
post #7 of 9
Thread Starter 
Quote:
Originally Posted by s1rrah View Post
Maybe something like a macro recording program?

I know I could use the macro keys on my Logitech G11 to program that function.

Perhaps there is a windows based macro program that will let you define and run macros to do that?

Just search around on things like "freeware macro recording program", etc.

Here's one I just found: http://www.freedownloadscenter.com/U...utoHotkey.html

...

i cant use anything downloaded like that, i am at work and they would flip a bird if i did that lol, that is why i thought a batch file made in the windows/command/dos enviroment would work the best

pretty much i want to type upit name.txt name.tx6 and it will run the batch file inserting name.txt into the right spots and name.tx6 into the right spot, as seen up above in my op
ALIENWARE CRAP
(13 items)
 
  
CPUMotherboardGraphicsRAM
opty 165 LCB9E 0646RPMW asus a8n-sli 8600gts w512 x1 G. Skill 2 gig (2x1gig) 
Hard DriveOSMonitorKeyboard
not sure off top of head windows xp home philips 200w logitech 
PowerCaseMouseMouse Pad
silverstone sst-st65zf alienware case logitech mickey mouse :D 
  hide details  
Reply
ALIENWARE CRAP
(13 items)
 
  
CPUMotherboardGraphicsRAM
opty 165 LCB9E 0646RPMW asus a8n-sli 8600gts w512 x1 G. Skill 2 gig (2x1gig) 
Hard DriveOSMonitorKeyboard
not sure off top of head windows xp home philips 200w logitech 
PowerCaseMouseMouse Pad
silverstone sst-st65zf alienware case logitech mickey mouse :D 
  hide details  
Reply
post #8 of 9
Thread Starter 
ok, i dug around the web after work and figured out how to do it...
i make a bat file named test.bat and inside of it i put the following text.

@echo off
if(%3) == () goto end2
if(%3) == (3) goto three
if(%3) == (6) goto six

:three
copy %1 + %1 + %1 %2
goto end
:six
copy %1 + %1 + %1 + %1 + %1 + %1 %2
goto end
:end
echo thank you have a nice day
:end2
echo please enter file to be copied, name to be saved and either 3 or 6 for how many times to copy it, for exameple will.bat will.txt will.tx6 6

and that does exactly what i want it to do, but htank you guys for the quick replies.
ALIENWARE CRAP
(13 items)
 
  
CPUMotherboardGraphicsRAM
opty 165 LCB9E 0646RPMW asus a8n-sli 8600gts w512 x1 G. Skill 2 gig (2x1gig) 
Hard DriveOSMonitorKeyboard
not sure off top of head windows xp home philips 200w logitech 
PowerCaseMouseMouse Pad
silverstone sst-st65zf alienware case logitech mickey mouse :D 
  hide details  
Reply
ALIENWARE CRAP
(13 items)
 
  
CPUMotherboardGraphicsRAM
opty 165 LCB9E 0646RPMW asus a8n-sli 8600gts w512 x1 G. Skill 2 gig (2x1gig) 
Hard DriveOSMonitorKeyboard
not sure off top of head windows xp home philips 200w logitech 
PowerCaseMouseMouse Pad
silverstone sst-st65zf alienware case logitech mickey mouse :D 
  hide details  
Reply
post #9 of 9
nice job 2 rep 4 you
Lurking Ninja
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7 920 D0 3849B203 4.0GHz/1.164 Evga X58 Classified E759/Koolance X58/BIX 120 TRI SLI GTX 285s.** 6GB 3x2 OCZ Gold 1600mhz 
Hard DriveOptical DriveOSMonitor
2x WD3200AAKS (RAID0), 1tb AALS Samsumg Wrigtmaster Sb 204/182 Windows 7 Ultimate X64 Gateway HD2401 24" 
KeyboardPowerCaseMouse
Logitech G15 V1 Corsair HX1000W Modded Rocketfish Logitech MX Revolution 
Mouse Pad
soft cotton? 
  hide details  
Reply
Lurking Ninja
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7 920 D0 3849B203 4.0GHz/1.164 Evga X58 Classified E759/Koolance X58/BIX 120 TRI SLI GTX 285s.** 6GB 3x2 OCZ Gold 1600mhz 
Hard DriveOptical DriveOSMonitor
2x WD3200AAKS (RAID0), 1tb AALS Samsumg Wrigtmaster Sb 204/182 Windows 7 Ultimate X64 Gateway HD2401 24" 
KeyboardPowerCaseMouse
Logitech G15 V1 Corsair HX1000W Modded Rocketfish Logitech MX Revolution 
Mouse Pad
soft cotton? 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Windows
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Windows › need a batch program/SOLVED IT