Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

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.
jtbryant

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