SET INSTALLPATH problem
Posted: 30 Mar 2015 21:54
I'm trying to create a batch file with that uses wget / nircmd.exe. i have install path set to "%appdata%"\whatever the problem comes when i run this batch file on my second computer which contains a space in the name of the user. wget seems to try and save it to c:\users\klaus and ends up writing a file called Klaus. when i need it to install to C:\Users\Klaus Schroder\AppData\Roaming\DriverPack
this is what i get, trying to figure out a way to make wget to save to directories with spaces as well as directories without spaces. does it not recognize the %appdata% as C:\Users\Klaus Schroder\AppData\Roaming\?
C:\Users\Klaus Schroder\AppData\Local\Temp>SET INSTALLPATH="C:\Users\Klaus Schro
der\AppData\Roaming"\DriverPack
C:\Users\Klaus Schroder\AppData\Local\Temp>mkdir "C:\Users\Klaus Schroder\AppDat
a\Roaming"\DriverPack
HTTP request sent, awaiting response... 200 OK
Length: 527960 (516K) [application/x-msdownload]
Saving to: 'C:/Users/Klaus'
C:/Users/Klaus 100%[=====================>] 515.59K 184KB/s in 2.8s
2015-03-30 22:47:03 (184 KB/s) - 'C:/Users/Klaus' saved [527960/527960]
--2015-03-30 22:47:03-- http://schroder%5Cappdata%5Croaming%5Cdriverpack%5Crar.
exe/
Resolving schroder\\appdata\\roaming\\driverpack\\rar.exe (schroder\\appdata\\ro
aming\\driverpack\\rar.exe)... failed: The requested name is valid, but no data
of the requested type was found. .
wget: unable to resolve host address 'schroder\\appdata\\roaming\\driverpack\\ra
r.exe'
FINISHED --2015-03-30 22:47:03--
Total wall clock time: 4.1s
Downloaded: 1 files, 516K in 2.8s (184 KB/s)
this is what i get, trying to figure out a way to make wget to save to directories with spaces as well as directories without spaces. does it not recognize the %appdata% as C:\Users\Klaus Schroder\AppData\Roaming\?
C:\Users\Klaus Schroder\AppData\Local\Temp>SET INSTALLPATH="C:\Users\Klaus Schro
der\AppData\Roaming"\DriverPack
C:\Users\Klaus Schroder\AppData\Local\Temp>mkdir "C:\Users\Klaus Schroder\AppDat
a\Roaming"\DriverPack
HTTP request sent, awaiting response... 200 OK
Length: 527960 (516K) [application/x-msdownload]
Saving to: 'C:/Users/Klaus'
C:/Users/Klaus 100%[=====================>] 515.59K 184KB/s in 2.8s
2015-03-30 22:47:03 (184 KB/s) - 'C:/Users/Klaus' saved [527960/527960]
--2015-03-30 22:47:03-- http://schroder%5Cappdata%5Croaming%5Cdriverpack%5Crar.
exe/
Resolving schroder\\appdata\\roaming\\driverpack\\rar.exe (schroder\\appdata\\ro
aming\\driverpack\\rar.exe)... failed: The requested name is valid, but no data
of the requested type was found. .
wget: unable to resolve host address 'schroder\\appdata\\roaming\\driverpack\\ra
r.exe'
FINISHED --2015-03-30 22:47:03--
Total wall clock time: 4.1s
Downloaded: 1 files, 516K in 2.8s (184 KB/s)