Computing.Net > Forums > Windows 95/98 > autoexe.bat+Xcopy.exe

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

autoexe.bat+Xcopy.exe

Reply to Message Icon

Name: Go*.*
Date: April 20, 2001 at 19:32:09 Pacific
Comment:

Question? When trying to run the following from autoexe.bat it won't run.I tried MXcopy.exe and another version of xcopy and of course Xcopy32.exe.All with parameter errors.Removed parameters one at a time (way too many restarts)still no success.

I have moved the IE cache to ramdisc and currently load via shortcuts to the follows bats off the desktop.Which works out good but would be even better if I didn't have to remember to do it!

Load.bat

@ECHO ON for testing
cls
echo Loading IE Cache to RAMDRIVE
XCOPY C:\SAVED~1\TEMPOR~1 E:\TEMPOR~1 /E /H /Q /K /Y
exit

Unload.bat
ECHO ON for testing
cls
XCOPY32 E:\ C:\SAVED~1\ /E /H /Q /K /Y
del C:\SAVED~1\TEMPOR~1\CONTENT.IE5\INDEX.DAT

exit
*(Note del index.dat was the only way this
works to up load later)

I have gone as far as I can with this without a few good tips.

1) How to load from autoexe.bat
2) Gonna try this with a shortcut but any better suggestions are welcome.

START /W unload.bat
RUNDLL32.EXE SHELL32.DLL,SHEXITWINDOWSEX 1

I have no clue if that will work though.
Thanks
Peter



Sponsored Link
Ads by Google

Response Number 1
Name: jmatt
Date: April 20, 2001 at 19:56:05 Pacific
Reply:

Reading this will help . John .

http://home.att.net/~navasgrp/tech/clone_copy.htm#Cloning



0

Response Number 2
Name: Brad
Date: April 20, 2001 at 20:49:50 Pacific
Reply:

The problem is that you are trying to use xcopy32 parameters. You can only use xcopy32 in a dos box under windows. When you attempt to run xcopy32 in standalone dos mode xcopy is actually run and it doesn't have the H,K,Q and Y parameters.


0

Response Number 3
Name: neXussT
Date: April 20, 2001 at 23:49:22 Pacific
Reply:

@ECHO ON for testing
cls
echo Loading IE Cache to RAMDRIVE
XCOPY C:\SAVED~1\TEMPOR~1\ E:\TEMPOR~1\ /E /H /Q /K /Y
exit

«« notice the \ after "TEMPOR~1"...it tells xcopy that u're putting the stuph into a directory »»

Unload.bat
ECHO ON for testing
cls
XCOPY32 E:\ C:\SAVED~1\ /E /H /Q /K /Y
del C:\SAVED~1\TEMPOR~1\CONTENT.IE5\INDEX.DAT


and i don't think u need al the paramaters...just the /e


0

Response Number 4
Name: tsuji
Date: April 21, 2001 at 00:15:15 Pacific
Reply:

Before anything else, make right SAVED~1. It spells wrong.


0

Response Number 5
Name: Go*.*
Date: April 21, 2001 at 09:38:48 Pacific
Reply:

Thanks all,I tried the suggested changes.Unfortunatetly still unable to run from autoexe.bat.Grrr!Still in the same spot I was.

One more question is there a reg hack or setting ect.. that can change IE from using random file names for cache?

Thanks Peter


0

Related Posts

See More



Response Number 6
Name: ???
Date: April 21, 2001 at 10:04:28 Pacific
Reply:

Did you read response #2?
xcopy32 will not run in autoexec.bat. You can only use xcopy in Dos. Type 'xcopy32 /?' in dos standalone and check out the parameters.


0

Response Number 7
Name: tsuji
Date: April 21, 2001 at 11:51:01 Pacific
Reply:

Here is a solution, maybe not neat enough but certainly would satisfy your objective. In particular, it includes load and unload all in one batch file. And, I respect your lines as much as possible.

Make the following batch file.

@echo off
::------------------------------
:: name : launch_ie.bat
:: location : wherever you want
::------------------------------

@ECHO ON for testing
cls
echo Loading IE Cache to RAMDRIVE
XCOPY C:\SAVED~1\TEMPOR~1 E:\TEMPOR~1\ /E /H /Q /K /Y

"C:\Program Files\Internet Explorer\IEXPLORE.exe"

pause
XCOPY E:\ C:\SAVED~1\ /E /H /Q /K /Y
del C:\SAVED~1\TEMPOR~1\CONTENT.IE5\INDEX.DAT

@echo off
::-----------------------------------

Create a shortcut for it.
Click out the Properties, and makes sure with the following properties on Program, do the modification if necessary

1 Close on exit : checked
1 Run : minimized
1 Icon : browse to pointing to say
C:\Program Files\Internet Explorer\IEXPLORE.exe
and select a better looking icon.

After that, move the PIF icon to desktop, if you like and choose a better name.

The setup of ramdisk e: must be made in your autoexec.bat as existing setup, I suppose.

The line "pause" allows you to complete the unload after you have quitted IE. Press enter to the expanded dos box.
The ms-dos will stay on the taskbar during the browsing session.

This is all the setup needed.

Additional remark : Wondering if SAVED~1 is actually the way you name the directory. If it is a typo, check to make sure. It is certainly not an (8.3) alias of a LFN.


0

Response Number 8
Name: tsuji
Date: April 21, 2001 at 13:00:51 Pacific
Reply:

An additional modification to the PIF shortcut.

Program properties - modify the command line there to :

existing Cmdline : ...
modified Cmdline : c:\windows\command.com /c ...

The letters are those added part. It makes the dos box closing under better control.


0

Response Number 9
Name: Go*.*
Date: April 21, 2001 at 19:00:02 Pacific
Reply:

Thanks tsuji
In a hurry but here's what I did (Post details later here)

Created 3 bat files.

1) Calls #(2)Load.bat and launches my isp when finished.Changed shortcut icon to isp's.:)
2)Loads cache
3)Unloads caches and shuts down windows/pc.(Needs a really nice OFF icon!)

Not real polished but before reading your last post I found the close window command and put that at the end of each.(Didn't know about the toggle in PIF shortcut or I may have done that.I'll clean it up and post later.neXussT \

Thanks again
Peter
Hmmn then changing IE TIF files to 1 permanent one is the next "Bug"!I tried the 5.0 fix but alas no MM256.dat or MM2048.dat:(

0

Response Number 10
Name: Go*.*
Date: April 24, 2001 at 07:45:06 Pacific
Reply:

Ran into the "random file names properties" bug using xcopy after a long session of browsing.(Large cache)

Switched to the XXCOPY.exe which seems ok but I need to play with it some.Can't use long file names in source/destination pathes I spose its to do with the system and hidden properties.Must be a new switch or something.Seems to work well with dos names.
The name errors where: FILES\
\Temporary
And one other combination with E:\Temporary Internet Files I think it was Internet.

Gonna run with that a while and post back later.


0

Response Number 11
Name: Go*.*
Date: April 28, 2001 at 19:19:32 Pacific
Reply:

xxcopy seems better than xcopy here.I have temporarily given up on the IE cache though.I can't figure out how to save/replace or reassociate the index.dat with the current content.
So I downloaded Interquick.Which is sposed to feed IE its cache.Its cache is saved without any restrictive attributes.Making it easy to save to the ramdrive.I wish I could think of a way to measure the perfomance but seeing that I have also been fiddlin with the modem(got 56kbs down and 34up last run whoohoo).With the ad filter on access can be slow but with it off things really start to sizzle.Well for a dial up on a noisy line at least.I think the single user lic. for the Interquick is $19.95.Have to run it a while to see if its worth it.But for the ease of putting cache in the ram drive it may be well worth it.It was much better then Netsonic Pro which just wouldn't cache with this IE6.And after uninstalling it had raised cane with my modem driver and settings.Among other things!!Well if I get a chance I'll post something regarding this in the current forum.Give em something to pick apart and maybe I can get some feed back on the finishing touches.So to anyone considering setting there IExx cache to memory go for it.But don't get discouraged if it takes a while to get the results you want.


0

Sponsored Link
Ads by Google
Reply to Message Icon

HDD problem, baaaad Empty Config.sys



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows 95/98 Forum Home


Sponsored links

Ads by Google


Results for: autoexe.bat+Xcopy.exe

autoexe.bat - REM? www.computing.net/answers/windows-95/autoexebat-rem/131764.html

autoexe bat www.computing.net/answers/windows-95/autoexe-bat/98559.html

>bat,.com,.exe ,.scr files will not www.computing.net/answers/windows-95/batcomexe-scr-files-will-not/150058.html