<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://wiki.signature.net/skins/common/feed.css?270"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.signature.net/index.php?action=history&amp;feed=atom&amp;title=Move_a_file</id>
		<title>Move a file - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.signature.net/index.php?action=history&amp;feed=atom&amp;title=Move_a_file"/>
		<link rel="alternate" type="text/html" href="http://wiki.signature.net/index.php?title=Move_a_file&amp;action=history"/>
		<updated>2026-05-04T00:01:41Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.16.0</generator>

	<entry>
		<id>http://wiki.signature.net/index.php?title=Move_a_file&amp;diff=1558&amp;oldid=prev</id>
		<title>Badge: New page: '''DOS pseudo functions: Move a file'''  '''Syntax:'''   DOSMS(AX-value, BX-value, Source file name, Target file name) EXCP=statement-label    '''Entry:'''   All arguments are strings.    ...</title>
		<link rel="alternate" type="text/html" href="http://wiki.signature.net/index.php?title=Move_a_file&amp;diff=1558&amp;oldid=prev"/>
				<updated>2009-06-13T11:53:37Z</updated>
		
		<summary type="html">&lt;p&gt;New page: &amp;#39;&amp;#39;&amp;#39;DOS pseudo functions: Move a file&amp;#39;&amp;#39;&amp;#39;  &amp;#39;&amp;#39;&amp;#39;Syntax:&amp;#39;&amp;#39;&amp;#39;   DOSMS(AX-value, BX-value, Source file name, Target file name) EXCP=statement-label    &amp;#39;&amp;#39;&amp;#39;Entry:&amp;#39;&amp;#39;&amp;#39;   All arguments are strings.    ...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''DOS pseudo functions: Move a file'''&lt;br /&gt;
&lt;br /&gt;
'''Syntax:'''&lt;br /&gt;
  DOSMS(AX-value, BX-value, Source file name, Target file name) EXCP=statement-label  &lt;br /&gt;
&lt;br /&gt;
'''Entry:'''&lt;br /&gt;
  All arguments are strings. &lt;br /&gt;
  AX = &amp;quot;@FFF9@&amp;quot;&lt;br /&gt;
  BX = not used&lt;br /&gt;
 &lt;br /&gt;
'''Discussion:'''&amp;lt;br&amp;gt;&lt;br /&gt;
This pseudo function moves a file from one directory to another. &amp;lt;br&amp;gt;&lt;br /&gt;
If the target directory is on the same logical drive as the source directory, the file is renamed. &amp;lt;br&amp;gt;&lt;br /&gt;
Otherwise, the file is copied to the target drive, after which the source file is erased. &amp;lt;br&amp;gt;&lt;br /&gt;
It is essential to append Hex 00, &amp;quot;@00@&amp;quot; to the end of each file name. &lt;br /&gt;
&lt;br /&gt;
Here is a sample code fragment: &lt;br /&gt;
&lt;br /&gt;
 Length 2 &amp;amp; Local AX$  BX$&lt;br /&gt;
 Length 3 &amp;amp; Local DosCode$&lt;br /&gt;
 Length 128 &amp;amp; Local SourceFileName$  TargetFileName$&lt;br /&gt;
 !&lt;br /&gt;
 Print (0) (ET)&lt;br /&gt;
 !&lt;br /&gt;
 Print (0) &amp;quot;Enter From File&amp;quot;&lt;br /&gt;
 Input (0) SourceFileName$&lt;br /&gt;
 !&lt;br /&gt;
 SourceFileName$ = SourceFileName$ + &amp;quot;@00@&amp;quot;&lt;br /&gt;
 !&lt;br /&gt;
 Print (0) &amp;quot;Enter To File&amp;quot;&lt;br /&gt;
 Input (0) TargetFileName$&lt;br /&gt;
 !&lt;br /&gt;
 TargetFileName$ = TargetFileName$ + &amp;quot;@00@&amp;quot;&lt;br /&gt;
 !&lt;br /&gt;
 AX$ = &amp;quot;@FFF9@&amp;quot;  &amp;amp; BX$ = &amp;quot;@0000@&amp;quot;&lt;br /&gt;
 !&lt;br /&gt;
 DOSMS(AX$,BX$,SourceFileName$,TargetFileName$) EXCP=OOPS&lt;br /&gt;
 !&lt;br /&gt;
 !&lt;br /&gt;
 OOPS:&lt;br /&gt;
        Close(49) &amp;amp; Open (49) &amp;quot;QERCOMET&amp;quot;&lt;br /&gt;
        Doscode$ = &amp;quot;D&amp;quot; + HEXASC(SUB(AX$,2,1)&lt;br /&gt;
        Read (49) Mess$&lt;br /&gt;
        Print (0) @(0,23) Doscode$ + &amp;quot;  &amp;quot; + Mess$&lt;br /&gt;
        Input(0) &amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
DOS pseudo functions&lt;/div&gt;</summary>
		<author><name>Badge</name></author>	</entry>

	</feed>