Sponsored By

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this