G
Guest
Anyone know how to create a batch file that will give you the size of a file
and execute a task. For example if a zip file is less than 1mb delete it.
and execute a task. For example if a zip file is less than 1mb delete it.
John said:Anyone know how to create a batch file that will give you the size of a file
and execute a task. For example if a zip file is less than 1mb delete it.
John said:Phil, thank you for the reply however the files are not actually being
deleted. It says they are but when you do a dir on the folder they are still
there. Any ideas?
:
John said:Works Perfectly!!! Thank You. We are using it in a batch file.
John said:No problem Thanks Again. You seem to be very knowlegeable so maybe you can
answer this question. We would like to be able to disable users from closing
DOS windows by clicking the "X". Any ideas?
We just want to prevent users from clicking the "x" in any DOS window. If
that involves removing it, graying it out whatever, we just dont want users
to be able to close the window by pressing the X. We use a DOS based POS
program in our retail stores and need this to elimanate data corruption that
is caused by terminating the program when clicking the X. Any help is always
appreciated.
:
John said:Phil, here is an example of a program that does exactly what we want. I guy
who wrote it wont give us the code so we can look at it.
http://www.uwe-sieber.de/files/consolenoclose.zip
John said:Phil, we want the source code just to make sure it isnt doing anything it
shouldnt be doing since this would be in a corporate enviroment. Thanks for
all your help.
tedoniman said:12:43 10-Jun-06
batchfile query
Query for Phil Robyn...
Sorry to barge in like this but couldn't resist. If you're deep into
batchfiles,
perhaps
you would know of a 'simple' way to simulate the not-so-old and one of the
most
useful ever DOS commands: "command/y/c" to step thru and de-bug batchfiles.
It appears it's been eliminated from under XP and the new DOS command
scenario
they're using nowadays is a bit over my head. I've had to really battle to
get some
of my old (and new) batchfiles running OK under Win XP Pro (SP2). The
'pause'
command helps but it's cumbersome and some of the curt and cryptic error
messages don't help any either.
I've been told there's a way to do it via the SET/p command but couldn't get
that
working right - probably because I couldn't obtain a simple step-by-step
example.
There's nothing like a good, working sample script to show the way.
Someone also wrote some code for doing it but it's quite long and complex.
Seems odd that there's no simple substitute command available for doing such
an
essential task (for DOS hangers on, anyway).
Any ideas?
Might browse around and post some more. Getting really frustrated over this.
Tried for months now...
Pegasus (MVP) said:You write "XP and the new DOS command scenario". Note that
there is no DOS under WinXP - it's the Command Prompt. DOS
is an operating system on its own and there is no room for it
under Windows.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.