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.
If exist doesn't work
Name: solano Date: May 31, 2008 at 12:02:21 Pacific OS: dos CPU/Ram: 4gb Product: amd
Comment:
echo off if exist C:\Documents and Settings\solano\Bureau\file.xlsx goto MESSAGE echo The file C:\Documents and Settings\solano\Bureau\file.xlsx doesn't exist Pause goto END MESSAGE echo The file C:\Documents and Settings\solano\Bureau\file.xlsx exists
The filename has got spaces. Try to put it in quotes i.e.:
@echo off if exist "C:\Documents and Settings\solano\Bureau\file.xlsx" goto MESSAGE echo The file C:\Documents and Settings\solano\Bureau\file.xlsx doesn't exist Pause goto END :MESSAGE echo The file C:\Documents and Settings\solano\Bureau\file.xlsx exists Pause :END
BTW, you forgot to put ":" before MESSAGE label.
0
Response Number 3
Name: Bicephale Date: June 3, 2008 at 09:50:04 Pacific
Reply:
Full path FileNames of the form "C:\Documents and Settings\" are implying that this is a Windows console problem and hence you're not posting in the proper forum.
Summary: Just insert an file into that directory and let your computer search if this file exists. "IF EXIST" doesn't work with directories. It works only with files. example filename: exist.yes if exist \\ser...
Summary: Rachael03, If copying the format.com file doesn't work, (no room, etc) go to my webspace (header of this post) and download WIN98SE.EXE. Place it somewhere handy and click on it to make a 98 boot dis...
Summary: Do you get a beep? If not, here is a list of things to try... Reseat the proccessor. Reseat the RAM. Check the jumper settings on the motherboard, please look at the manual when looking at the jumper ...