<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Change file extension, idendify user in server and root path' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Change file extension, idendify user in server and root path' posted on the 'MS-DOS' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Wed, 19 Jun 2013 10:25:36 -0700</pubDate>
    <lastBuildDate>Wed, 19 Jun 2013 10:25:36 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Change file extension, idendify user in server and root path</title>
      <link>http://www.programmersheaven.com/mb/MS-DOS/428930/428930/change-file-extension-idendify-user-in-server-and-root-path/</link>
      <description>I would like to make a *.bat file on this and I would like any possible comment and corrections.&lt;br /&gt;
&lt;br /&gt;
In order to understand what I need, the following explanation:&lt;br /&gt;
&lt;br /&gt;
1-Is there a way to reduce or eliminate the flickering of the personalized screen size when it is created as shown in the code below?&lt;br /&gt;
&lt;br /&gt;
2-I want to modify and improve "folder_nameA" so as it becomes a folder located in an intranet folder. What command or how is the exact code that should I use to get to the intranet root/path that I already know? ex.:  "\\HKL\folder1\folder2\folder_nameA". Note that in the code below I use the drive letter K. Most of times is letter K, but othertimes users have this folder assigned to different letters as F,G,L,U etc. It depends on how this folder is mapped for every user. Suggestions?&lt;br /&gt;
&lt;br /&gt;
3-I would like a command to replace "Name_of_Windows_User" so it really identifies the actual user that is logged in&lt;br /&gt;
&lt;br /&gt;
4-How can I use the command IF EXISTS in this situation? If *.avi does not exist, go to line "prog1" and warn the user&lt;br /&gt;
&lt;br /&gt;
5-Is the "error level 2" an error typical to "no internet connection problem"? If not, what should I use instead as an error message when the internet cable is not connected for example?&lt;br /&gt;
&lt;br /&gt;
6-Suppose I also want to create a EXE file on this little DOS program. I am an administrator of the logged in section but I am not a Windows administrator. Everytime I try to edit a cmd and run a *.bat extension that was renamed to an *.exe extension I receive the error : A CPU NTVDM has found an unauthorized instruction. CS:0fbd IP:0101 OP:65 64 68 8f 10 Choose 'close' to exit application. How can I turn this final bat program into an exe an execute? Adding to that, is there a DOS command to bypass Windows administration privilleges as to run my EXE in any computer?&lt;br /&gt;
&lt;br /&gt;
Kind regards,&lt;br /&gt;
Maleck&lt;br /&gt;
&lt;br /&gt;
@echo off&lt;br /&gt;
FOR /L %%W IN (1,1,18) DO MODE CON:COLS=60 LINES=%%W&lt;br /&gt;
cd\&lt;br /&gt;
cd k:&lt;br /&gt;
cd folder_nameA&lt;br /&gt;
ren *.avi *.mpeg&lt;br /&gt;
&lt;br /&gt;
@echo off&lt;br /&gt;
&lt;br /&gt;
if errorlevel 0 goto end&lt;br /&gt;
if errorlevel 1 goto prog1&lt;br /&gt;
if errorlevel 2 goto prog2&lt;br /&gt;
&lt;br /&gt;
:end&lt;br /&gt;
echo Dear user "Name_of_Windows_User", the conversion from AVI&lt;br /&gt;
echo to MPEG is successully done. Press any key to exit ....&lt;br /&gt;
pause &amp;gt;nul&lt;br /&gt;
&lt;br /&gt;
:prog1&lt;br /&gt;
echo File AVI does not exist in selected folder "folder_nameA". Press any key to exit ....&lt;br /&gt;
pause &amp;gt;nul&lt;br /&gt;
 &lt;br /&gt;
:prog2&lt;br /&gt;
echo Net connection is not working. Please connect and run program again. Press any key to exit.&lt;br /&gt;
pause &amp;gt;nul&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/MS-DOS/428930/428930/change-file-extension-idendify-user-in-server-and-root-path/</guid>
      <pubDate>Tue, 26 Jun 2012 17:25:55 -0700</pubDate>
      <category>MS-DOS</category>
    </item>
  </channel>
</rss>