Solved

Easy! BAT file

Posted on 2004-04-21
9
407 Views
Last Modified: 2010-04-13
Hi,
I have a simple 1 line copy stmt in a .bat file.
It's not executing properly, but can't see what's going on or the error msg.
Is there a way to leave the command prompt window open after execution, successful or not?
thanks,
phil
0
Comment
Question by:spoowiz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 2
9 Comments
 

Author Comment

by:spoowiz
ID: 10882637
btw,
i double-click on it to execute. running Win2000Pro.
0
 
LVL 32

Expert Comment

by:LucF
ID: 10882795
Hi spoowiz,

Run it from the command prompt to see what is troubling it.
Start => Run => type "CMD" (without the quotes and press enter)

Greetings,

LucF
0
 

Author Comment

by:spoowiz
ID: 10882873
It's a long stmt so I was hoping to not re-type.
Is there a way to copy/paste?
0
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 
LVL 32

Accepted Solution

by:
LucF earned 50 total points
ID: 10882934
Sure, just select everything, then press CTRL-C
Switch to the command screen (if you use it full screen, press ALT-enter to make it a window)
Rightclick on the top left corner => edit => paste
0
 
LVL 1

Expert Comment

by:Nermal
ID: 10882966
If you open the file in an editor (notepad or equivalent) select the text and copy it.
Start - Run - CMD
Click Top-left corner of Command Window select Edit - Paste
Execute the command and the result should appear on the screen and stay there.

N
0
 
LVL 32

Expert Comment

by:LucF
ID: 10882994
:)
0
 

Author Comment

by:spoowiz
ID: 10883001
Thanks. That's really useful. I always wondered why the command prompt didn't have cut/paste function. Now I know it's there. Sorry Nermal, LucF beat you to it.
0
 
LVL 32

Expert Comment

by:LucF
ID: 10885905
Glad to help ;-)

LucF
0
 
LVL 1

Expert Comment

by:Nermal
ID: 10886489
Thats OK, glad you managed to solve your problem.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Check out this step-by-step guide for asking an anonymous question on Experts Exchange.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question