comment and uncomment a line with Shell Script

Requirement is:

  1. comment and uncomment the line with Shell
    Script: /opt/admin/fastpg/bin/fastpg.exe -c -=NET (using fastpg.exe as a search option)
  2. display = "Commented" (when its commented) and display = "Uncommented" (when its uncommented)
    Its urgent, please let me asap!!!
    Thanks in Advance.

There's an 'urgent' forum here if it truly is, but this is not it. I am here though, so:

to comment:

sed -i 's@^/opt/admin/fastpg/bin/fastpg.exe -c -=NET@#/opt/admin/fastpg/bin/fastpg.exe -c -=NET@g' scriptfilename

to uncomment:

sed -i 's@^#/opt/admin/fastpg/bin/fastpg.exe -c -=NET@/opt/admin/fastpg/bin/fastpg.exe -c -=NET@g' scriptfilename

Or you could make two copies of the script file, modify one of them, and make the original a symlink that can be easily changed to point to whichever one you want.

both the below options dont seem to be working - plz suggest.