Can anybody get this to work?

Hakon

New member
Local time
4:40 PM
Messages
72
can anybody get this to work ? :\

Code:
@echo off
:start
ping google.com /t >> "%userprofile%\Documents\Ping statistics\%date:~5,10%\%time:~1,7%.txt"
goto start
 

My Computer My Computer

Computer Manufacturer/Model Number
Custom
OS
Windows 7 build 7600 64 bit
CPU
Phenom II X4 955 retail 3.2GHz
Motherboard
ASRock M3A790GXH/USB3 ATX AMD AMD3
Memory
4x GeiL 2GB Value PC3-10660 CL9 DC DDR3-1333, CL 9-9-9-28
Graphics Card(s)
PowerColor Radeon HD5850 PCS+ 1024MB, 256-bit GDDR5
Sound Card
Built in
Hard Drives
G.Skill Phoenix Pro 120GB SATA2 SSD Sandforce SF-120
Samsung Spinpoint 500GB SATA2 7200RPM
PSU
Tacens Radix III Smart 520W
Bump, its only supposed to ping google and write the result to
"%userprofile%\Documents\Ping statistics\%date:~5,10%\%time:~1,7%.txt"
wich will turn into
"C:\Users\Schnitzel\Documents\Ping statistics\02.11.2009\0:25:59.txt"
 

My Computer My Computer

Computer Manufacturer/Model Number
Custom
OS
Windows 7 build 7600 64 bit
CPU
Phenom II X4 955 retail 3.2GHz
Motherboard
ASRock M3A790GXH/USB3 ATX AMD AMD3
Memory
4x GeiL 2GB Value PC3-10660 CL9 DC DDR3-1333, CL 9-9-9-28
Graphics Card(s)
PowerColor Radeon HD5850 PCS+ 1024MB, 256-bit GDDR5
Sound Card
Built in
Hard Drives
G.Skill Phoenix Pro 120GB SATA2 SSD Sandforce SF-120
Samsung Spinpoint 500GB SATA2 7200RPM
PSU
Tacens Radix III Smart 520W
Bump :huh:
 

My Computer My Computer

Computer Manufacturer/Model Number
Custom
OS
Windows 7 build 7600 64 bit
CPU
Phenom II X4 955 retail 3.2GHz
Motherboard
ASRock M3A790GXH/USB3 ATX AMD AMD3
Memory
4x GeiL 2GB Value PC3-10660 CL9 DC DDR3-1333, CL 9-9-9-28
Graphics Card(s)
PowerColor Radeon HD5850 PCS+ 1024MB, 256-bit GDDR5
Sound Card
Built in
Hard Drives
G.Skill Phoenix Pro 120GB SATA2 SSD Sandforce SF-120
Samsung Spinpoint 500GB SATA2 7200RPM
PSU
Tacens Radix III Smart 520W
It is against forum rules to bump threads you have to give people time to see your post.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Acer Aspire XC-704 x64 bit/ Asus K55A Notebook PC/HP Envy x360 Convertible 15-bq0xx
OS
Windows 10 64bit/Windows 10 64bit/Windows 10 64bit
CPU
Intel Pentium J3710 @ 60GHz/Intel B820,1.7GHz/AMD A9 Radeon
Motherboard
Acer Aspire XC-704 (SOCKET 0)/Asus/HP 8312 (Socket FP4)
Memory
8.00GB DDR3 @ 1599MHz/8GB 2 x 4GB DDR3/8.00GB Dual-Channel
Graphics Card(s)
Intel HD Graphics/Intel/512MB ATI AMD Radeon R5 Graphics (HP
Sound Card
Realtek High Definition Audio/Onboard/AMD High Definition Au
Monitor(s) Displays
Acer LCD K222HQL /Asus 15.6/Generic PnP Monitor (1920x1080@6
Screen Resolution
1920x1080@59Hz/1366 x 768/1920x1080@60Hz
Hard Drives
1863GBWesternn Digital WDC/Asus/119GB SanDisk SD8SN8U-128G-1006 (SSD)
931GB Hitachi HGST HTS721010A9E630 (SATA)
Keyboard
Microsoft Natural Ergonomic Keyboard 4000 (UK)/Inbuilt/Inbui
Mouse
Microsoft Optical Wheel Mouse/Same plus Touchpad/Same + Pad
Internet Speed
Infinity 2 up to 76 Mbps
Antivirus
MSE/MSE/MSE and all 3 have MalwareBytes Premium
Browser
Edge, Firefox/Edge, Firefox/Edge, Firefox, Chrome
Other Info
Seagate Expansion 500GB External Desktop Drive
Seagate Expansion Portable Drives 500GB and 1TB
Epson XP-332 Wireless Printer
If you plan on using dates for batch files, I would seriously look into VBS instead. You can do a lot more with a lot less hassle. For instance, I wanted to write a batch file that would copy a database back-end file to a backup location, with the date added to the file name. It never worked correctly - I wasted a few hours on it, until I came to my senses and did what I wanted in VBS in about 10 minutes.
 

My Computer My Computer

Computer Manufacturer/Model Number
Dell XPS 15 L502x
OS
Windows 7 Ultimate x64 SP1
CPU
Core i7-2670QM
Memory
8GB DDR3 PC3-10600
Graphics Card(s)
Intel HD Graphics 3000 + GeForce GT 540M
Screen Resolution
1920x1080
Hard Drives
1TB 5400RPM Seagate
Back
Top