{"id":14203,"date":"2021-12-14T11:24:16","date_gmt":"2021-12-14T11:24:16","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=14203"},"modified":"2021-12-14T11:24:46","modified_gmt":"2021-12-14T11:24:46","slug":"windows-xp-wont-execute-batch-program-at-all","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/programming\/windows-xp-wont-execute-batch-program-at-all\/22728.html","title":{"rendered":"Windows XP Won&#8217;t Execute Batch Program At All"},"content":{"rendered":"<p>I have been programming BAT files since 1982 and never seen this issue before. I am running XP and my batch files do not function properly. All my commands are ignored including:<br \/>\nSET PATH=<br \/>\nIF EXIST &lt;filename&gt;<br \/>\nGOTO<br \/>\nIn addition, the command-line memory doesn&#8217;t work on this machine. Usually I press PgUp to see and execute previous lines held in a buffer. Nothing is there.<\/p>\n<p>How can WINDOWS work if there is no ability to execute commands in a batch file?<\/p>\n<p>Here is the actual run. Even change drive fails:<\/p>\n<p>C:\\DOCUME~1\\JOAN\\DESKTOP&gt;set path=c:\\util;c:\\windows\\system32;c:\\windows<\/p>\n<p>C:\\DOCUME~1\\JOAN\\DESKTOP&gt;path<br \/>\nPATH=c:\\util;c:\\windows\\system32;c:\\windows<\/p>\n<p>C:\\DOCUME~1\\JOAN\\DESKTOP&gt;set<br \/>\nALLUSERSPROFILE=C:\\DOCUME~1\\ALLUSE~1<br \/>\nAPPDATA=C:\\DOCUME~1\\Joan\\APPLIC~1<br \/>\nBLASTER=A220 I5 D1 P330 T3<br \/>\nCLASSPATH=.;C:\\Program Files\\Java\\jre1.6.0_05\\lib\\ext\\QTJava.zip<br \/>\nCOMMONPROGRAMFILES=C:\\PROGRA~1\\COMMON~1<br \/>\nCOMPUTERNAME=DFM4JM91<br \/>\nComSpec=C:\\WINDOWS\\system32\\cmd.exe<br \/>\nFP_NO_HOST_CHECK=NO<br \/>\nHOMEDRIVE=C:<br \/>\nHOMEPATH=\\Documents and Settings\\Joan<br \/>\nLOGONSERVER=\\\\DFM4JM91<br \/>\nNUMBER_OF_PROCESSORS=2<br \/>\nOS=Windows_NT<br \/>\nPATH=c:\\util;c:\\windows\\system32;c:\\windows<br \/>\nPATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH<br \/>\nPROCESSOR_ARCHITECTURE=x86<br \/>\nPROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 9, GenuineIntel<br \/>\nPROCESSOR_LEVEL=15<br \/>\nPROCESSOR_REVISION=0409<br \/>\nPROGRAMFILES=C:\\PROGRA~1<br \/>\nPROMPT=$P$G<br \/>\nQTJAVA=C:\\Program Files\\Java\\jre1.6.0_05\\lib\\ext\\QTJava.zip<br \/>\nSESSIONNAME=Console<br \/>\nSONICCENTRAL=C:\\Program Files\\Common Files\\Sonic Shared\\Sonic Central\\<br \/>\nSYSTEMDRIVE=C:<br \/>\nSYSTEMROOT=C:\\WINDOWS<br \/>\nTEMP=C:\\WINDOWS\\TEMP<br \/>\nTMP=C:\\WINDOWS\\TEMP<br \/>\nUSERDOMAIN=DFM4JM91<br \/>\nUSERNAME=Joan<br \/>\nUSERPROFILE=C:\\DOCUME~1\\Joan<\/p>\n<p>C:\\DOCUME~1\\JOAN\\DESKTOP&gt;r:<\/p>\n<p>C:\\DOCUME~1\\JOAN\\DESKTOP&gt;path<br \/>\nPATH=C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\PROGRA~1\\COMMON~<br \/>\n1\\ROXIOS~1\\DLLSHA~1\\;C:\\PROGRA~1\\QUICKT~1\\QTSyst<\/p>\n<p>Notice that the PATH and SET commands inside the batch file seemed to work, but the change-drive command (R:) failed and the last line (PATH) entered immediately after the run shows the original path restored.<\/p>\n<p>This seems impossible, but it&#8217;s true. And rebooting made no difference.<\/p>\n<p>I&#8217;m stumped. Anyone have some idea of what is happening, and how to fix it?<\/p>\n<p>What makes it even stranger is that the little sub,bat program does work and does set up three SUBST drives<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":77},"question-category":[55],"question_tags":[],"class_list":["post-14203","question","type-question","status-publish","hentry","question-category-programming"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question\/14203","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question"}],"about":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/types\/question"}],"author":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/comments?post=14203"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=14203"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=14203"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=14203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}