There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop dma driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express pio problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
DOS/PDA/Other
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Operating Systems > DOS/PDA/Other >
[SOLVED] bat file fails


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
Mistermad's Avatar
Junior Member with 3 posts.
 
Join Date: Jan 2004
29-Jan-2004, 03:50 PM #1
bat file fails
Hello can anyone help with the bat file below.
I'm on dos 6.22 on an old 486 at work
The bat works part way then fail.
Is it because M: and T: drives are on a network? Any ideas?


cls

@echo off


REM --- INPUT Command

echo BATCH_INPUT___hgQX-PPP_XPPP E#HH0E50EG0Ef0Ehs>myinput.com
echo myinput.bat hoAX5@@PZYh@xX5@D3!r/P[WX,b,-PZh>>myinput.com
echo X3!X2ErP,{,{PYX4=0ErWX,j,-PZh@@X3!=set input>>myinput.com
ECHO.
ECHO.
ECHO.
echo This bat file will do the following to the jig number entered
echo Copy it from m:\tecnost to c:\shrunk
echo Unshrink it
echo Copy c:\cadentry\dir\ to t:\tfr
echo Delete the jig zip file from the shrunk folder
echo.This is what you normally do manually
echo.
echo.
echo Type in the jig number:

myinput.com
call myinput.bat
echo.

echo.
del myinput.com
del myinput.bat

REM ---End ot the Input Command---
echo on
REM --------shows you the input Variable on the screen------------
echo %input%
copy m:\tecnost\%input%.zip c:\shrunk
unshrink %input%

The following two lines fail
copy c:\cadentry\dir\%input%\*.* t:\tfr\%input%
erase c:\shrunk\%input%


Echo All finished
Rockn's Avatar
Computer Specs
Distinguished Member with 17,888 posts.
 
Join Date: Jul 2001
Location: Mexico of the North, MN
Experience: Disenfranchised American Male
29-Jan-2004, 09:24 PM #2
THat would be my guess that the network drives cannot be accessed from your batch file.
Mistermad's Avatar
Junior Member with 3 posts.
 
Join Date: Jan 2004
30-Jan-2004, 03:13 PM #3
That's what I thought. But if I use the last two lines and a new input in a new bat file and run that straight after the first then those lines work! Weird.
Mistermad's Avatar
Junior Member with 3 posts.
 
Join Date: Jan 2004
31-Jan-2004, 10:18 AM #4
Found the problem.
The unshrink command was another bat file. I substituted it with pkunzip %1 and the whole thing worked.
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 10:14 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.