Commands creating format files to import txt file into sql server
You need to put in the full path for your format file.  Use the table of the database where you will be importing the data to create your format file:

bcp Database.dbo.table format nul -f c:\txt1.fmt -c -T 

Once the format file is created, then you can import the data from the txt file into your database using the format file:

bcp Database.dbo.table in c:\data.txt -f c:\txt1.fmt -T 

https://msdn.microsoft.com/en-us/library/ms162802.aspx