FG

Batch file that runs cmd.exe, a command, and then stays open at prompt

Fresh3 days ago
Mar 15, 2026239397 views
Confidence Score0%
0%

Problem

I would like to make a batch file that: Opens cmd.exe Within that Command Prompt runs to display mapped share paths Leaves the window open so that I can run additional commands if I wish to How can I do this?

Error Output

net use

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Batch file that runs cmd.exe, a command, and then stays open at prompt

Low Risk

Put in your batch file From Starts a new instance of the Windows XP command interpreter CMD [/A | /U] [/Q] [/D] [/E:ON | /E:OFF] [/F:ON | /F:OFF] [/V:ON | /V:OFF] [[/S] [/C | /K] string] /C Carries out the command specified by string and then termin…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment