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.

Questions and answers begin here Logo Questions and answers begin here Logo
Sign InSign Up

Questions and answers begin here

Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • About Us
  • Blog
  • Contact Us

windows

Home/windows

Questions and answers begin here Latest Questions

Asked: 1 year agoIn: Programming

g is not recognized as an internal or external command, operable program or batch file (in Windows)

michelles_mommyy Teacher

I have been struggling with running some batch files using the command prompt in Windows 10. Every time I try to execute a batch file named “update.bat”, I get the error message “g is not recognized as an internal or ...Read more

I have been struggling with running some batch files using the command prompt in Windows 10. Every time I try to execute a batch file named “update.bat”, I get the error message “g is not recognized as an internal or external command, operable program or batch file”. This error is driving me crazy and I have no clue how to solve it.
Here is the code inside the “update.bat” file:
echovectorbravo off
g drive:pathtogitbin
echo Updating repository...
git --git-dir=drive:pathtorepository.git pull origin master
echo Done.

I have already verified that git is installed on my Windows machine and added it to my PATH environment variable. I also tried running the “update.bat” file as an administrator and adding a call to the “git” executable in the batch file, but nothing seems to be working. I am not sure whether there is something wrong with my code or with my system configuration. Can someone please help me figure out what I am doing wrong and how to fix this error? Thanks in advance.

Read less
command-lineenvironment-variablesexecutablepathwindows
  1. Dive into Turkish History
    Added an answer about 7 days ago
    Your answer is awaiting moderation.

    Explore the significant historical events that shaped Turkey on our website. It's a journey into the past.

    Explore the significant historical events that shaped Turkey on our website. It’s a journey into the past.

    See less
    • 0
    • Share
      Share
      • Share onFacebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  • 127
  • 3 Answers
  • 285 Views
Asked: 2 years agoIn: Programming

What is the relationship of closewindow() and WM_CLOSE?

braevanov Teacher

I am a new programmer working on a Windows application using C++. I’ve been reading through the Microsoft documentation and I stumbled upon some conflicting information regarding the `CloseWindow` function and the `WM_CLOSE` message. I’m confused about how these two ...Read more

I am a new programmer working on a Windows application using C++. I’ve been reading through the Microsoft documentation and I stumbled upon some conflicting information regarding the `CloseWindow` function and the `WM_CLOSE` message. I’m confused about how these two are related and when I should use one over the other.
From what I understand, `CloseWindow` is a function that can be used to minimize, maximize, or close a window. On the other hand, `WM_CLOSE` is a message that can be sent to a window to instruct it to close. I’m not sure how these two functions/messages are connected or whether they’re interchangeable.
Here’s an example of the code I’m working with:
“`
HWND hWnd = FindWindow(NULL, “My Window Title”);
if (hWnd != NULL) {
CloseWindow(hWnd);
}
“`
In this code snippet, I’m using the `FindWindow` function to locate a specific window by its title and then attempting to close it using `CloseWindow`. However, I’m not sure if I should be sending a `WM_CLOSE` message instead or if `CloseWindow` is the correct function to be using at all. Can someone explain the difference between these two and when I should use each one?

Read less
closewindowmessage-handlingwinapiwindowswm-close
  1. Dive into Turkish History
    Added an answer about 7 days ago
    Your answer is awaiting moderation.

    Explore the significant historical events that shaped Turkey on our website. It's a journey into the past.

    Explore the significant historical events that shaped Turkey on our website. It’s a journey into the past.

    See less
    • 0
    • Share
      Share
      • Share onFacebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  • 632
  • 4 Answers
  • 986 Views
Asked: 5 years agoIn: Programming

RegOpenKeyExW with HKEY_LOCAL_MACHINE returns 2 on Windows Embedded 7 64-bit

luu_ckoo Teacher

I am a software developer working on a project that involves accessing Windows registry entries. I have been facing an issue with the RegOpenKeyExW API when using the HKEY_LOCAL_MACHINE key on Windows Embedded 7 64-bit. I have tried troubleshooting the ...Read more

I am a software developer working on a project that involves accessing Windows registry entries. I have been facing an issue with the RegOpenKeyExW API when using the HKEY_LOCAL_MACHINE key on Windows Embedded 7 64-bit. I have tried troubleshooting the issue by changing the access rights, verifying the accuracy of the key path, and running my application with administrator privileges. However, I have not been successful in resolving the error that RegOpenKeyExW returns, which is 2 or “file not found”.
I have also tried to use the RegOpenKeyEx API with the same parameters, but I still get the same error. I am not sure what else I can do to resolve this issue. I have spent several hours searching online for possible solutions, but I have not found anything helpful. I am concerned that this issue may be specific to the Windows Embedded 7 operating system and 64-bit architecture, which may limit my options for resolving the issue.
Here is a code snippet that demonstrates the issue I am facing:

DWORD result = RegOpenKeyExW(HKEY_LOCAL_MACHINE, L"SOFTWARE\Microsoft", 0, KEY_READ, &hKey);
if(result != ERROR_SUCCESS)
{
// Handle error
}

Can anyone provide insights on why I might be facing this issue, and what could be a possible resolution? Any help would be appreciated. Thank you.

Read less
64-bitc#registrywindowswindows-embedded-7
  1. Dive into Turkish History
    Added an answer about 7 days ago
    Your answer is awaiting moderation.

    Explore the significant historical events that shaped Turkey on our website. It's a journey into the past.

    Explore the significant historical events that shaped Turkey on our website. It’s a journey into the past.

    See less
    • 0
    • Share
      Share
      • Share onFacebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  • 491
  • 2 Answers
  • 111 Views

Sidebar

Ask A Question

Stats

  • Questions 117
  • Answers 403
  • Best Answers 0
  • Users 5k
  • Popular
  • Answers
  • crisroxz

    Pine Script error: script could not be translated from `null`

    • 1 Answer
  • leguizamon_ailen

    1.7 Lab: Adjust values in a list by normalizing [Python]

    • 1 Answer
  • fabian_mgram

    Python String Class like StringBuilder in C#

    • 3 Answers
  • utxpiv_ added an answer The error "libpng warning iccp known incorrect sRGB profile" usually… March 31, 2023 at 12:34 pm
  • imamreshmahi added an answer One possible way to avoid the warning 'libpng warning iccp… March 18, 2023 at 7:34 pm
  • crazytibet added an answer When dealing with the Libpng warning ‘iCCP: known incorrect sRGB… March 15, 2023 at 3:40 pm

Top Members

bluzbear

bluzbear

  • 0 Questions
  • 101 Points
Pundit
krystianpanczak

krystianpanczak

  • 0 Questions
  • 101 Points
Pundit
idavidt5

idavidt5

  • 0 Questions
  • 101 Points
Pundit

Trending Tags

attributeerror c# command-line configuration debugging error error handling ImportError java javascript json module Node.js pandas programming python swift testing troubleshooting windows
  • Meet The Team
  • Blog
  • About Us
  • Contact Us

© 2017 - All Rights Reserved. Made with ❤️ in RO