Hello,
Is it possible to copy a file from the USB drive to local computer via the PStart interface? If yes, how can I do this?
arlanda
Copying file to local drive via PStart interface
- vikingdread
- Posts: 10
- Joined: Thu Nov 29, 2007 2:51 am
- Contact:
Re: Copying file to local drive via PStart interface
The first thought that crossed my mind was "why would you need something like that?"arlanda wrote:Hello,
Is it possible to copy a file from the USB drive to local computer via the PStart interface? If yes, how can I do this?
arlanda
But I suppose you could do it as follows if you always want to copy the same file:
create a shortcut to a batch-file (*.bat) in PStart and have the batch-file do a copy of the required file.
Hi, the batch method will not work because I need to hardcode the removable drive letter. I am unable to use PStart's variable %pdrive% because it is external to the BAT file (unless linking is allowed?). Will using PStart's "Command line parameter (optional)" in File properties dialog help in this case?
If all else fail, I'll simply add a script that will ask me to manually input the external's drive letter before it can copy the file over.
If all else fail, I'll simply add a script that will ask me to manually input the external's drive letter before it can copy the file over.
- vikingdread
- Posts: 10
- Joined: Thu Nov 29, 2007 2:51 am
- Contact:
You use the %pdrive% variable as a command line parameter to the batch file.arlanda wrote:Hi, the batch method will not work because I need to hardcode the removable drive letter. I am unable to use PStart's variable %pdrive% because it is external to the BAT file (unless linking is allowed?). Will using PStart's "Command line parameter (optional)" in File properties dialog help in this case?
If all else fail, I'll simply add a script that will ask me to manually input the external's drive letter before it can copy the file over.
In the batch file you use the value of %pdrive% by substituting it with the number that corresponds with the order in which %pdrive% appears in the command line parameter list.
If %pdrive% is the first (or only) command line parameter, then you use %1 in the batch file. If %pdrive% is the third command line parameter, then you use %3 in the batch file.
For example:
Code: Select all
copy %1\myfile.doc c:\temp\myfile.doc
pause
It can be done...