Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7582901
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T18:33:00+00:00 2026-05-30T18:33:00+00:00

here goes the problem: suppose if I want to run a plot.exe in cmd,

  • 0

here goes the problem:

suppose if I want to run a plot.exe in cmd, I wrote the following line in cmd,

plot image.jpg

BTW I was trying in this way in my c file:

system(“start plot image.jpg”)

the above command start the cmd and also the plot command but the image file did not popup. There is an error command:

“image.jpg is not def”

What does it meant by? please help me out.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T18:33:02+00:00Added an answer on May 30, 2026 at 6:33 pm

    Probably the process’s working directory is not the directory that contains the image. You can either specify the full path to the image:

    system("plot /full/path/to/image.jpg");
    

    or use chdir to change the working directory before running the command:

    if(chdir("/full/path/to/") == -1)
        ; // TODO handle error
    system("plot image.jpg");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'll try to explain my problem the best I can, here goes: I have
Alright, here goes. I'm making a very basic app, and I want the user
I will describe the problem as simple as i can. alright, here goes the
I suppose this is more or less trivial thing but here it goes... I
Ok here goes: I have a SELECT drop down option with US state names
Weird to describe but here goes. I have a table with several rows. One
I assume this is pretty easy so here goes; I'm trying to execute these
First post, so here goes. I'm writing a script that does intelligent search and
I'm not sure if this is even possible but here goes: Currently I have
Ok, here goes. I've completed a Cocoa foundation-tool that calculates mean absolute deviation of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.