In C you can use %username% as a variable for the current user's name for directory listings and such>> c:\documents and settings\%username%\
Is there something like this for a batch script?? Using just %username% doesn't seem to help.
I wrote a script that accesses my FTP server so I can load files to the server. I want my friends to be able to use this script, but I don't want to have to write several different scripts. Here is what I have so far:
@echo off
@ftp -s:"%~f0" &GOTO: EOF
open FTP.server.com
user
pass
cd /home/ftp
bin
lcd "c:\documents and settings\%username%\my documents\FTP"
mput *txt
pause
'bye`
There's gotta be a way