Totally Lost

Advertisement

jtbryant
Joined:
Posts:
1
Location:
Mississippi

Totally Lost

So I am trying to upload data using a script that was provided to me, but I can't e-mail them about support for using WinSCP.

Here is part of it, so I run it as a script using /s ?

REM 0) *****Turn ON delayed expansion!********
setlocal enabledelayedexpansion

REM 1) Log date and time.
FOR /F "tokens=1,2,3,4delims=/ " %%A IN ('DATE/T') do (
set myMonth=%%B
set myDay=%%C
set myYear=%%D
)
FOR /F "tokens=1,2,3delims=:." %%V IN ('echo %time%') do (
set myHour=%%V
set myMinute=%%W
set mySeconds=%%X
)
set testHour=%myHour:~1,1%
if "!testHour!"=="" set myHour=0!myHour!


REM 2) Set Stamps and Guids.

set myDate=!myMonth!_!myDay!_!myYear!
set myTime=!myHour!_!myMinute!_!mySeconds!_000

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,510
Location:
Prague, Czechia

Re: Totally Lost

Sorry, but I'm lost too. There's no mention of WinSCP in that "script". That "script" is actually a Windows batch file. You run it simply but typing its name on a Windows command-line or by double-clicking it in Windows explorer.

Reply with quote

Advertisement

You can post new topics in this forum