Thread: Help me to avoid file path setting errors in batch files

  1. #1
    Registered User
    Join Date
    Jan 2013

    Help me to avoid file path setting errors in batch files


    I am trying set paths for my C-Fortran project via Batch file & Control File. Can anybody please help me to verify that I am putting
    correct path syntax in these files. Because I am getting some debug assertion error or some sort of CLR error then it is difficult
    for me to identify troubles so just wanted to confirm whether the path setting syntax is correct or not! if not, I can suspect
    something else for causing error.
    My project path
    c:\Users\UsrAJ\My Documents\Visual Studio 2008\Projects\mg1g1_perfo

    Control File Path Setting (Filename: comcheck.ctrl)
    MG1G1-BATCH=c:/Users/UsrAJ/My Documents/Visual Studio 2008/Projects/mg1g1_perfo/input/MGProj.Batch % ascii file has to be specified
    in batch file

    Batch File Path Setting (Filename:MGProj.Batch)
    Source_code_Path=c:\Users\UsrAJ\My Documents\Visual Studio 2008\Projects\mg1g1_perfo\source
    GEOxFilepath=c:\Users\UsrAJ\My Documents\Visual Studio 2008\Projects\mg1g1_perfo\input

    Kindly help ASAP.....

  2. #2
    Registered User
    Join Date
    Jan 2009
    This is a long shot because I have no idea what you're talking about but the windows command line won't accept filenames with spaces unless they are delimited with double quotes. Wrapping your filename in double quotes might help?

  3. #3
    Registered User
    Join Date
    Jan 2013
    Dear DP,

    Many thanks to your answer, useful.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. now to set global path variable with batch?
    By sept in forum Windows Programming
    Replies: 1
    Last Post: 04-23-2008, 04:41 PM
  2. Replies: 3
    Last Post: 11-07-2006, 06:41 AM
  3. Setting path environment variable
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 09-01-2006, 03:03 PM
  4. File Path Setting
    By blue_gene in forum C Programming
    Replies: 11
    Last Post: 12-23-2003, 07:04 PM