K
kev100 via AccessMonster.com
I hope this is the right place to ask this question.....
I currently have a Macro that uses the RunApp option. The app that is run is
simply the command "c:\copyfile.bat"
It's a bat file that Prompts the user to enter a file name....then copies
that file to a certain folder.
I need to do 2 things: Use some other Access feature to get user input, then
use that input to copy the file from one location to another ......AND rename
it in the process.
The current DOS command to do such a thing is;
xcopy c:\%userinput%.txt f:\newfilename.txt /y
However, I'm really needing to STORE that user input to use in other queries
/ reports....so, I'm presuming that to do that....it's best to let some
Access feature take care of the input prompt and file copying as well.
And...it's okay if this stored variable dissappears after Access is closed...
it does not need to be stored premanently....only for that session.
Are there Access features that allow temporary storage of input.....which can
be used in other queries, etc.....and a feature to copy/rename a file...DOS-
style?
Any suggestions greatly appreciated.
Thanks
I currently have a Macro that uses the RunApp option. The app that is run is
simply the command "c:\copyfile.bat"
It's a bat file that Prompts the user to enter a file name....then copies
that file to a certain folder.
I need to do 2 things: Use some other Access feature to get user input, then
use that input to copy the file from one location to another ......AND rename
it in the process.
The current DOS command to do such a thing is;
xcopy c:\%userinput%.txt f:\newfilename.txt /y
However, I'm really needing to STORE that user input to use in other queries
/ reports....so, I'm presuming that to do that....it's best to let some
Access feature take care of the input prompt and file copying as well.
And...it's okay if this stored variable dissappears after Access is closed...
it does not need to be stored premanently....only for that session.
Are there Access features that allow temporary storage of input.....which can
be used in other queries, etc.....and a feature to copy/rename a file...DOS-
style?
Any suggestions greatly appreciated.
Thanks