+ Post New Thread
Results 1 to 3 of 3
Windows Thread, Pass £ in batch file in Technical; ...
  1. #1
    meastaugh1's Avatar
    Join Date
    Jul 2006
    Location
    London/Hertfordshire
    Posts
    890
    Thank Post
    69
    Thanked 85 Times in 70 Posts
    Rep Power
    32

    Pass £ in batch file

    I need to enter a £ character in a command I'm running from a batch file. If I just enter £ in the batch file, it produces ś at runtime. Is there a way I can specify Chr(156) in the batch file? thanks

  2. #2
    tarquel's Avatar
    Join Date
    Jun 2005
    Location
    Powys, Mid-Wales, UK
    Posts
    1,740
    Thank Post
    13
    Thanked 45 Times in 35 Posts
    Rep Power
    29
    Try "escaping" it with a ^ in front of it... if not, have a google about escaping in batch files.

    I cant remember the batch file in question i escaped some symbols or i'd dig it out and see what i did.

    Here's something that may help explain more:

    http://www.robvanderwoude.com/escapechars.html

  3. #3
    meastaugh1's Avatar
    Join Date
    Jul 2006
    Location
    London/Hertfordshire
    Posts
    890
    Thank Post
    69
    Thanked 85 Times in 70 Posts
    Rep Power
    32
    Thanks for pointing me in the right direction, but can't seem to escape the £ sign for some reason.

    Edit: Managed to sort this by using a VBSscript instead in the end.
    Last edited by meastaugh1; 21st January 2008 at 09:04 AM.

SHARE:
+ Post New Thread

Similar Threads

  1. Rename a PC from a batch file - Any ideas?
    By MrLudwig in forum Windows
    Replies: 13
    Last Post: 8th December 2007, 02:40 AM
  2. executing a random command in a batch file
    By Halfmad in forum Scripts
    Replies: 12
    Last Post: 6th November 2007, 09:25 PM
  3. batch file to shutdown PCs
    By macca in forum Windows
    Replies: 5
    Last Post: 3rd May 2007, 09:20 AM
  4. prezzie batch file to collect dps logs
    By russdev in forum ICT KS3 SATS Tests
    Replies: 4
    Last Post: 16th May 2006, 12:16 PM
  5. batch file help
    By beeswax in forum Scripts
    Replies: 9
    Last Post: 3rd March 2006, 07:48 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •