Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Run Command
Message
De
13/01/2004 09:04:05
Kiran Bajaj
Yes Bank Ltd
Mumbai, Inde
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Run Command
Divers
Thread ID:
00866321
Message ID:
00866321
Vues:
54
Hi !!

Objective - to take data from 3 different tables - header, detail and footer and merge it into one file - and move the file into a sub directory - with a customized file name

e.g. - move 2g011304.txt .\gefu\2g011304.txt - which works at the command prompt - the same thing when it is executed in VFP using the run command - returns a bad command or file name message.

Code to achieve this

RUN TYPE &vheader >>&vFinalGefu ' merging files
RUN TYPE &vdetail >>&vFinalGefu ' merging files
RUN TYPE &vfoot >>&vFinalGefu ' merging files


This command - returns a bad command or filename message - in the command prompt - also part of the .prg file - which is being run

run move &vfinalgefu &vto 'Code to move a file (with a derived filename) into a subdirectory

where - vfinalgefu = "2g011304.txt" and vto= ".\gefu\2g011304.txt"

What could be the possible reason ?? - for this msg and Also - is there a better way - of achieving this


Rgds,

KB
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform