Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running w64devkit.exe from an existing cmd.exe prompt #18

Closed
moodmosaic opened this issue Mar 22, 2022 · 7 comments
Closed

Running w64devkit.exe from an existing cmd.exe prompt #18

moodmosaic opened this issue Mar 22, 2022 · 7 comments

Comments

@moodmosaic
Copy link

(This might be an odd question.)

Can I run w64devkit.exe from an existing cmd.exe prompt? Or it's meant to be run standalone by simply executing w64devkit.exe?

@skeeto
Copy link
Owner

skeeto commented Mar 23, 2022 via email

@moodmosaic
Copy link
Author

Thank you for the detailed explanation!

My reason is same as yours, (vcvars.bat, which I'd like w64devkit to inherit).

@skeeto, I guess the opposite could work, then?

  1. Run w64devkit.exe
  2. Run vcvars.bat, then, from the same console

For visual reference, an example that might help other readers:

  • SnippingTool.exe run from inside w64devkit.exe that's run from inside cmd.exe

image

  • SnippingTool.exe run from inside w64devkit.exe

image

(Private bytes on the very right may be ignored.)

@skeeto
Copy link
Owner

skeeto commented Mar 23, 2022 via email

@moodmosaic
Copy link
Author

Very useful, thank you, Christopher. 👍

@moodmosaic
Copy link
Author

One more question (so I don't create a whole new GH issue for it).

If I install Git, will that interfere with the files in the bin folder of w64devkit? I notice, for example, that cat exists in both w64devkit and Git installation.

@skeeto
Copy link
Owner

skeeto commented Oct 11, 2022 via email

@moodmosaic
Copy link
Author

@moodmosaic
If I install Git

My fault, I used the wrong word here ("install"). By that I meant the portable "thumbdrive edition" Git (just like you wrote) 👍

@skeeto
Put only Git's cmd/ in PATH

Yes, that's exactly what I am doing. 👍

@skeeto
I've streamlined all this such that, without admin access, I can convert any Windows system

Yes! That's (more or less) exactly what I am doing. I have a directory (I call it "snapshot") and everything inside is (pretty much) portable (like git, text editors, code editors, python, etc).

I set the (portable) Git's HOME variable to point into that folder, too. So when I do cd ~ it'll always take me there. That folder is all I need. Apart from that, any Windows machine will work.

(Even with Docker, which I use at work, I don't use the Windows built-in virtualization for it, I just use the CLI and the actual Docker runs remotely, outside Windows.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants