GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Command line arguments? · winpython/winpython · Discussion #1305

Command line arguments? #1305

Unanswered
jftheoret asked this question in Q&A
Command line arguments? #1305
@jftheoret jftheoret
Mar 27, 2024 · 2 comments
Return to top
Discussion options
  • Uh oh!

    There was an error while loading. Please reload this page.

jftheoret
Mar 27, 2024

Is it possible to start a batch file when "WinPython Command Prompt.exe" is started (like the /K option for cmd.exe)?

You must be logged in to vote
All reactions

Replies: 2 comments

Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

  • Uh oh!

    There was an error while loading. Please reload this page.

stonebig
Mar 27, 2024
Maintainer

\scripts\env.bat ?

or

\scripts\cmd.bat ?

all icons point to a script in \scripts

You must be logged in to vote
All reactions
0 replies
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

GuanglinDu
Apr 14, 2025

@echo off

REM Here's a batch file I use with WinPython to launch my Python application.
REM 1/2. Put this batch file in the WinPython root folder;
REM 2/2. Put example.py in the notebooks folder under WinPython.

REM I based my batch script on the following Stack Overflow answer.
REM Make an batch file that runs commando in WinPython Command Prompt
REM https://stackoverflow.com/questions/31113114/make-an-batch-file-that-runs-commando-in-winpython-command-prompt

SETLOCAL
CD /d "%~dp0"
CALL "scripts\env_for_icons.bat"
CMD /k python.exe example.py

You must be logged in to vote
All reactions
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
3 participants
@jftheoret @stonebig @GuanglinDu
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.