| Windows 7: command prompt |
08 Nov 2012
|
#1 | | Windows 7 x64 X32 cambodia |
command prompt Hi all i need you help me a thing
I went to use autosave all text on command prompt (CMD), how can i do or use what command prompt cade for mark it autosave when i used command prompt. Example : Color 0a %echo KHC_Office_Manager
Ping 10.192.172.12
%echo KHC_Office_Buying
Ping 10.192.172.11 color 1a pause
what i need is autosave to my desktop is Ping today.txt Thank All | My System Specs |
| OS Windows 7 x64 X32 CPU intel Motherboard gigabey Memory 2Gb |
09 Nov 2012
|
#2 | | Win 7 Pro x64 SP1, Win 7 Ult x86 SP1 NC, USA |
You can try this and see if it works and does what you want:
Color 0a
%echo KHC_Office_Manager > "Desktop\Ping today.txt"
Ping 10.192.172.12 >> "Desktop\Ping today.txt"
%echo KHC_Office_Buying >> "Desktop\Ping today.txt"
Ping 10.192.172.11 >> "Desktop\Ping today.txt"
color 1a
pause | My System Specs | | Computer type PC/Desktop System Manufacturer/Model Number home built OS Win 7 Pro x64 SP1, Win 7 Ult x86 SP1 CPU AMD Athlon II x4 620 Motherboard Gigabyte GA-MA785G-UD3H Memory 6GB GSkill DDR2 800 Graphics Card AMD 4670 GPU + AMD 4200 IGP Sound Card on board Realtek ALC889A Monitor(s) Displays RCA 40" LCD TV, Insignia 32" LCD TV, HP 15" LCD monitor Screen Resolution 1680 x 1050... Keyboard Gyration wireless, Logitech wireless, Dell USB wired Mouse Gyration wireless, Logitech wireless, V7 USB wired PSU Corsair 500 W Case Rosewill mid tower Cooling CM 90mm Tower Hard Drives OCZ Vertex 3 120GB,
Samsung F3 1TB (3),
Several others - WD, Seagate, Hitachi, ... Internet Speed Uverse - 12Mbps D / 1.5Mbps U Antivirus Avast free OR MSE. (+ MBAM Pro). Browser 1-Firefox, 2-IE. (Chrome and Opera for testing) Other Info 2 PCs: Primary: dual-boot, Test: triple-boot.
Mainly HTPC/Gen purpose (no gaming).
Trendnet USB KVM.
LG DVD burner/Blue Ray Player.
Tray system for removable SATA backup drives.
Not currently OCd, under-volted.
I use Hybrid sleep, rarely re-boot or shutdown.
Hauppauge HD-PVR, Avermedia PCIe TV Tuner, Hauppauge PCI TV Tuner. |
09 Nov 2012
|
#3 | | Windows 7 x64 X32 cambodia |
it doesn't work pelz give me more code
example a giant
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\BATC>ping 192.168.1.1
Pinging 192.168.1.1 with 32 bytes of data:
Reply from 192.168.1.1: bytes=32 time=1ms TTL=149
Reply from 192.168.1.1: bytes=32 time=1ms TTL=149
Reply from 192.168.1.1: bytes=32 time=1ms TTL=149
Reply from 192.168.1.1: bytes=32 time=12ms TTL=149
Ping statistics for 192.168.1.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 12ms, Average = 3ms
C:\Documents and Settings\BATC>
And then it well saveauto to desktop file.txt
thank you for helpful to me ! | My System Specs | | OS Windows 7 x64 X32 CPU intel Motherboard gigabey Memory 2Gb |
10 Nov 2012
|
#4 | | Win 7 Pro x64 SP1, Win 7 Ult x86 SP1 NC, USA |
I'm guessing you get errors because of folder path issues.
I'm guessing you are saving these commands as a BAT file and running the BAT file.
One way you might fix this is adding a CD (Change Directory) command to the BAT file.
I added the cd C:\Users\DavidE\ to my BAT file and this works for me. You will need to change DavidE to YOUR USERID for this cd command. Here is my BAT file: Color 0a
cd C:\Users\DavidE\
%echo KHC_Office_Manager > "Desktop\Ping today.txt"
Ping 10.192.172.12 >> "Desktop\Ping today.txt"
%echo KHC_Office_Buying >> "Desktop\Ping today.txt"
Ping 10.192.172.11 >> "Desktop\Ping today.txt"
color 1a
pause If you do have problems post a screen print of the CMD window showing the errors. Screenshots and Files - Upload and Post in Seven Forums
Here is a screen print of what i see when i run the BAT file... | My System Specs | | Computer type PC/Desktop System Manufacturer/Model Number home built OS Win 7 Pro x64 SP1, Win 7 Ult x86 SP1 CPU AMD Athlon II x4 620 Motherboard Gigabyte GA-MA785G-UD3H Memory 6GB GSkill DDR2 800 Graphics Card AMD 4670 GPU + AMD 4200 IGP Sound Card on board Realtek ALC889A Monitor(s) Displays RCA 40" LCD TV, Insignia 32" LCD TV, HP 15" LCD monitor Screen Resolution 1680 x 1050... Keyboard Gyration wireless, Logitech wireless, Dell USB wired Mouse Gyration wireless, Logitech wireless, V7 USB wired PSU Corsair 500 W Case Rosewill mid tower Cooling CM 90mm Tower Hard Drives OCZ Vertex 3 120GB,
Samsung F3 1TB (3),
Several others - WD, Seagate, Hitachi, ... Internet Speed Uverse - 12Mbps D / 1.5Mbps U Antivirus Avast free OR MSE. (+ MBAM Pro). Browser 1-Firefox, 2-IE. (Chrome and Opera for testing) Other Info 2 PCs: Primary: dual-boot, Test: triple-boot.
Mainly HTPC/Gen purpose (no gaming).
Trendnet USB KVM.
LG DVD burner/Blue Ray Player.
Tray system for removable SATA backup drives.
Not currently OCd, under-volted.
I use Hybrid sleep, rarely re-boot or shutdown.
Hauppauge HD-PVR, Avermedia PCIe TV Tuner, Hauppauge PCI TV Tuner. All times are GMT -5. The time now is 02:40 AM. | |