Sign in to follow this  
Matt

Batch Help

Recommended Posts

I know this can be done, but everything I've tried, the batch keeps executing before any input can be given. I'm looking for a way, using batch, to prompt the user to input a file path, it stores that filepath into a variable, and then deletes the file entered. Any ideas on how to make this work, or can this not be done in stictly batch?

Thanks,

Matt

Share this post


Link to post
Share on other sites
echo off
set /P name="> "
del %name%
echo on

Edited by jcl

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this