auto populate file location field?
2 min read
Hi Bob,
![]()
Why wouldn't you simply attach the text file to an email and send it that way to your friend.
Keep it simple I say.
kind regards,
Hi Tallin,
I know i could email the file, swap it on a memory stick, do it over the network etc. But i'd just help if there was a way i could autopopulate a directory, the example i gave was just an example, although not a good one i admit !!
thanks again,
'Bob
If you are in Folder 1 and Folder 2 is a sub folder of Folder 1 and the txt file you want to open is in Folder 2, create a batch file in Folder 1, something like this:
Rem Open txt file in Folder 2
".\Folder 2\xyz.txt"
The double quotes would be needed since the directory (folder) name contains a space. The leading . means "this directory".
If you wanted to specify using notepad to open the txt file then it would look like this:
Rem Open txt file in Folder 2 wiht notepad
notepad ".\Folder 2\xyz.txt"
See if this works.
If you are in Folder 1 and Folder 2 is a sub folder of Folder 1 and the txt file you want to open is in Folder 2, create a batch file in Folder 1, something like this:
Rem Open txt file in Folder 2
".\Folder 2\xyz.txt"
The double quotes would be needed since the directory (folder) name contains a space. The leading . means "this directory".
If you wanted to specify using notepad to open the txt file then it would look like this:
Rem Open txt file in Folder 2 wiht notepad
notepad ".\Folder 2\xyz.txt"
that's exactly what i was after!!
thanks alot
Ask AI
AI can make mistakes. Check the cited posts. Archived advice can be out-of-date
Don't include personal information. Questions and selected public posts go to OpenAI. About Ask AI