You trying to give this command form the CLI of a switch or router? if so have a look at this:
http://www.cisco.com/application/pdf/paws/13730/ext_ping_trace.pdf
On that page i found the following: might help idk... but i tested it and it seemed to work for me (usin packet tracer 5.2)
double click the router or switch you want to start the ping from. then click the CLI tab and read the following code and enter it.. (change paramters to suit you XD)
This is an example with extended commands and sweep details:
Router A>enable
Router A#ping
Protocol [ip]:
!−−− The protocol name.
Target IP address: 192.168.40.1
!−−− The address to ping.
Repeat count [5]: 10
!−−− The number of ping packets that are sent to the destination address.
Datagram size [100]:
!−−− The size of the ping packet in size. The default is 100 bytes.
Timeout in seconds [2]:
!−−− The timeout interval. The ping is declared successful only if the
!−−− ECHO REPLY packet is received before this interval.
Extended commands [n]: y
!−−− You choose yes if you want extended command options
Cisco − Using the Extended ping and Extended traceroute Commands
!−−− (Loose Source Routing, Strict Source Routing, Record route and Timestamp).
Source address or interface: 172.16.23.2
!−−− Ping packets are sourced from this address and must be the IP address
!−−− or full interface name (for example, Serial0/1 or 172.16.23.2).
Type of service [0]:
!−−− Specifies Type of Service (ToS).
Set DF bit in IP header? [no]:
!−−− Specifies whether or not the Dont Fragment (DF) bit is to be
!−−− set on the ping packet.
Validate reply data? [no]:
!−−− Specifies whether or not to validate reply data.
Data pattern [0xABCD]:
!−−− Specifies the data pattern in the ping payload. Some physical links
!−−− might exhibit data pattern dependent problems. For example, serial links
!−−− with misconfigured line coding. Some useful data patterns to test
!−−− include all 1s (0Xffff), all 0s (0x0000) and alternating
!−−− ones and zeros (0Xaaaa).
Loose, Strict, Record, Timestamp, Verbose[none]:
!−−− IP header options.
Sweep range of sizes [n]: y
!−−− Choose yes if you want to vary the sizes on echo packets that are sent.
Sweep min size [36]:
Sweep max size [18024]:
Sweep interval [1]: